sp's out parameter value

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • majidkhan
    New Member
    • Feb 2008
    • 1

    sp's out parameter value

    After the successfully connection with database
    following is code
    [php]$TM = mysql_query("Ca ll Accounts_GetAll Data(@data)");
    $TM2 = mysql_query('SE LECT @data');
    $TM_X = mysql_fetch_arr ay($TM);
    $TM_W = mysql_fetch_arr ay($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
    Last edited by ronverdonk; Feb 28 '08, 12:28 PM. Reason: coding tags
  • dreaken667
    New Member
    • May 2007
    • 13

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



    Also remove the @ from your variables, they are not necessary.

    Comment

    Working...