/ Published in: PHP
retrieve only one value from the query
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function execute_scalar($sql,$def="") { return $r[0]; } return $def; }