I am calling a stored proc using php/sybase.
The stored proc creates a new entry in the database and is supposed to return a status_code and the primary key (max+1).
However, the stored procedure works, (meaning it does add the entry to the DB correctly) but when I do:
$new_result = @sybase_query($sql,$connection) or die (sybase_get_last_message());
$row = sybase_fetch_row($new_result) or die (sybase_get_last_message());
$row = sybase_fetch_row($result);
I get the error:
[28-May-2002 15:30:30] PHP Warning: 1 is not a Sybase result index in /www/htdocs/CHOMP/test_syb.php on line 78
and the last sybase message was:
Changed database context to 'promodb'.
this baffling me. I have tried many different avenues to get this to work.
Thanks for any help
-Nate