Hi,
I posted this in the MySQL forum but was advised to post it here since I'm dealing with PHP.
I'm trying to return a record set from my stored procedure but found out that I have to use CLIENT_MULTI_RESULTS to do it. So I put code in place that I found on several sites to call mysql_real_connect. This is my code:
The error that I'm getting is :
Line 25 is the following:
What am I doing wrong? I'm using PHP 5 and MySQL 5 and Smarty and am quite new at all three. Please help ... your help would be greatly appreciated ...
Regards,
VB Rookie
I posted this in the MySQL forum but was advised to post it here since I'm dealing with PHP.
I'm trying to return a record set from my stored procedure but found out that I have to use CLIENT_MULTI_RESULTS to do it. So I put code in place that I found on several sites to call mysql_real_connect. This is my code:
Code:
$dbconnect = NULL;
$dbhost = "localhost:3307";
$dbname = "db";
$dbusername = "root";
$dbuserpass = "pass";
MYSQL mysql;
mysql_init(&mysql);
$dbconnect = mysql_real_connect(&mysql, $dbhost, $dbusername, $dbuserpass, $dbname, 3307, 0, CLIENT_MULTI_RESULTS);
The error that I'm getting is :
Code:
Parse error: parse error, unexpected T_VARIABLE in C:\The S Files\WebDev\DataQuest\includes\db.php on line 25
Line 25 is the following:
Code:
MYSQL mysql;
What am I doing wrong? I'm using PHP 5 and MySQL 5 and Smarty and am quite new at all three. Please help ... your help would be greatly appreciated ...
Regards,
VB Rookie