How do I save variables into the phpmyadmin database and then display them in variable form again
For example, an example of a variable that I want to enter into the database is var1 below
<code><?php
$var1 = "Hello $var2"; //"Hello $var2" save to database
And then displays the data from the database with select script etc
echo"$data[data]"; //Display again "Hello $var2" from database
?>
</code>
<code><?php
$var1 = "Hello $var2"; //"Hello $var2" save to database
And then displays the data from the database with select script etc
echo"$data[data]"; //Display again "Hello $var2" from database
?>
</code>
<?php
$var1 = "Hello $var2"; //"Hello $var2" save to database
And then displays the data from the database with select script etc
echo"$data[data]"; //Display again "Hello $var2" from database
?>
I want to reuse a variable that I have stored in the database but why is the variable read as a string
New contributor
Praya Web is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.