By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,664 Members | 1,656 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,664 IT Pros & Developers. It's quick & easy.

sp's out parameter value

P: 1
After the successfully connection with database
following is code
[php]$TM = mysql_query("Call Accounts_GetAllData(@data)");
$TM2 = mysql_query('SELECT @data');
$TM_X = mysql_fetch_array($TM);
$TM_W = mysql_fetch_array($TM2);
print_r(TM_W); [/php]I am not able to get out parameter(data). please response asap.

Thanks

You must enclose any code within the appropriate coding tags. See the Posting Guidelines before you continue - moderator
Feb 28 '08 #1
Share this Question
Share on Google+
1 Reply


P: 13
The mysql API cannot fetch OUT parameter values. You'll need to use the improved API (mysqli) instead.

http://us3.php.net/manual/en/ref.mysqli.php

Also remove the @ from your variables, they are not necessary.
Mar 17 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.