Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
79 lines (58 sloc) 1.69 KB

getCol / PgetCol

Executes the SQL and returns all elements of the first column as a 1-dimensional array.

If an error occurs, false is returned.


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

Prepared statements Parameters

PgetCol($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 print_r($rs):