PHP GENERAL 43 ODBC RESULT
Date: Tue, 8 Jul 2003 16:43:50 -0400

Subject: odbc_result...
From: scott@no-spam (Scott Fletcher)

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!