Name
mysql
Synopsis
$result = msql($database, $query); $result = mysql($database, $query);
Sends the query query
to the mSQL/MySQL database
database
. For a non-SELECT
statement the function returns
for mSQL 1.x and MySQL and the number of affected rows for mSQL 2.x.
For a SELECT
statement the function returns a
result identifier to be used with other msql_*
functions. In the case of an error the function returns -1.
Get MySQL and mSQL now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.