Quantcast
Channel: PHP - MySQL gets value of out parameter from a stored procedure - Stack Overflow
Viewing all articles
Browse latest Browse all 6

Answer by Prabakar Sebastin for PHP - MySQL gets value of out parameter from a stored procedure

$
0
0

Another correct methods its working fine: Cheers!!

$procedureName = 'VALIDATE_USER';$procedure = "CALL $procedureName('$username','$pwd',@p_userid)";$results1 = $dbconnection->query($procedure);$results2 = $dbconnection->query("SELECT @p_userid");$num_rows = $results2->num_rows;if ($num_rows > 0) {    while($row = $results2->fetch_object())    {    echo $row->{"@p_userid"};    }}

Viewing all articles
Browse latest Browse all 6

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>