O
O
Oleg Svirchev2014-12-21 13:41:07
PHP
Oleg Svirchev, 2014-12-21 13:41:07

How to import multiple variables from the database into one variable with transfers?

There is a db in which there are several textual/numerical values. Text values ​​are both single-line and multi-line. For example, I need to import these variables into one variable ($message) in order to insert it into the database later. $message variable example:
Hello, your order has been processed and is ready to ship.
You bought an elephant for $var1.
The weight of the elephant is $var2
. $var3. Thank you
for your purchase!
How to make such a variable, or is it necessary somehow differently?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FanatPHP, 2014-12-21
@FanatPHP

I need to import these variables into one variable ($message) in order to insert it into the database later.

What for? What is the point of shifting from one pocket to another?
All this data you already have in the database.
If you don't know much about programming yet, then always ask a question about the original problem you are solving. And not about the difficulties that you encountered, cutting out the tonsils with an autogen. You will get a much more useful answer.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question