Answers for "php-pdo-returning-single-row"

0

php-pdo-returning-single-row

$DBH = new PDO( "connection string goes here" );
$STH - $DBH -> prepare( "select figure from table1 ORDER BY x LIMIT 1" );

$STH -> execute();
$result = $STH -> fetch();
echo $result ["figure"];

$DBH = null;
Posted by: Guest on April-29-2021

Browse Popular Code Answers by Language