This is a discussion on odbc_result... within the PHP General forums, part of the PHP Programming Forums category; Hi! Is there a way to verify that odbc_resut($result,1) is successfull or not. I'm not talking about --...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Hi!
Is there a way to verify that odbc_resut($result,1) is successfull or not. I'm not talking about --snip-- $result = odbc_exec($connect,$ask); if ($result) { echo "Successfull!"; } else { echo "Failed!!"; } --snip-- --snip-- $result = odbc_exec($connect,$ask); $db_result = odbc_exec($result,1); if ($db_result) { echo "Successfull!"; } else { echo "Failed!!"; } --snip-- because it check on database connection, not whether is the SQL Statement had been successfully execuated or failed. What I'm looking for is whether is the SQL Statement, 'INSERT' is successful or fail. Not the database connection. Thanks! |
![]() |
| Thread Tools | |
| Display Modes | |
|
|