Choose your database:
AnySQL
MySQL
MS SQL Server
PostgreSQL
SQLite
Firebird
Oracle
SQL Anywhere
DB2
MaxDB

Subscribe to our news:
Partners
Testimonials
Dionys Henzen: "Congratulations! Your MySQL PHP Generator is a great tool, that can save a lot of time and money to a developer! I'll evaluate for sure your software products when I need them. Great job".
Mike Little: "Great product, thank you for your great work and sharing".

More

Add your opinion

PHP Generator for MySQL online Help

Prev Return to chapter overview Next

ExecScalarSQL

Executes a query returning a single value.

 

Signature:

function ExecScalarSQL($sql)

 

Example:

$userId = $this->GetCurrentUserId();

$sql = "SELECT status FROM phpgen_users WHERE user_id = $userId";

$userStatus = $this->GetConnection()->ExecScalarSQL($sql);

 



Prev Return to chapter overview Next