Answers for "how to save the variable from query in mysql with php"

PHP
0

how to save the variable from query in mysql with php

$result = $db->query('Select `Name`, `Age`, `Color` from `People` ');
while ($rows = $result->fetch()){
$Name = $rows['Name'];
$Age = $rows['Age'];
$Color = $rows['Color'];
}
Posted by: Guest on April-25-2021
0

how to save the variable from query in mysql with php

<p>
Hello, my name is <?php echo $Name; ?>. 
I am <?php echo $Age; ?> years old and my favorite color is <?php echo $Color; ?>.
</p>
Posted by: Guest on April-25-2021

Code answers related to "how to save the variable from query in mysql with php"

Browse Popular Code Answers by Language