Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
51 lines (31 sloc) 992 Bytes

getOne / PGetOne

Executes the SQL and returns the first field of the first row. If an error occurs, false is returned.


$sql:The MySQL query to perfom on the database.

Prepared statements Parameters

PgetOne($sql, $varN)
$sql:The MySQL query to perfom on the database
$varN:The variable(s) that will be placed instead of the ? placeholder separated by a ',' or it can be the method Prepare.


Output of echo $rs: