Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

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'];
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #save #variable #query #mysql #php
ADD COMMENT
Topic
Name
1+1 =