Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php fetch mysql result as variable

<?php
$result = mysql_query("SELECT id,email FROM people WHERE id = '42'");
if (!$result) {
    echo 'Could not run query: ' . mysql_error();
    exit;
}
?>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #php #fetch #mysql #result #variable
ADD COMMENT
Topic
Name
9+6 =