odbc_result...

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 --...


Go Back   Usenet Forums > PHP Programming Forums > PHP General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-08-2003
Scott Fletcher
 
Posts: n/a
Default odbc_result...

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!


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 10:44 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0