odbc_result...
| From: | Scott Fletcher | Date: | Tue, 08 Jul 2003 20:43:50 +0000 |
| Subject: | odbc_result... | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-154428@lists.php.net to get a copy of this message | ||
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!