Answers for "php fetch mysql result as variable"

PHP
0

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;
}
?>
Posted by: Guest on October-15-2020

Browse Popular Code Answers by Language