PHP_Framework

Wh1t3projects' PHP framework. Small PHP framework for building web apps and websites

View the Project on GitHub

Syntax: SQL_status([object $link])

Check the status of the SQL session on the remote server.


Parameters

Optional $link
A valid SQL ressource identifier to verify.


Return values

TRUE if the session is active on the remote server, FALSE otherwise or if the ressource identifier is invalid


Examples:

Check the status of the session stored in the driver’s memory
SQL_status();

Check the status of a given session
SQL_status($resid);

Display “Working!” if the session is valid
if (SQL_status()) { echo "Working!";}