How is my error checking wrong? Now I'm getting a notice about a missing function call and a missing comma from. I think I can figure things out on my own if someone would just explain where my error checking is lacking so that I can trap my errors so I'll know where my code if failing...

I took into account what you said Shawn and tried to alter my code to the following:

Code:
$objConn 		= DBConnOpen('DRIVER={MySQL ODBC 3.51 Driver};SERVER=localhost;DATABASE=test;USER=test;PASSWORD='';OPTION=3;')
? "Error @ERROR: @SERROR"
sleep 5
$sql = "INSERT INTO computer(name) VALUES('testcomputer')"

DBExecuteSQL($objConn,$sql)
? "Error @ERROR: @SERROR"
sleep 5

DBConnClose($objConn)
? "Error @ERROR: @SERROR"
sleep 5



but i get that error about missing a comma and it being and invalid method/function call. Also, this message is being reported on line 145 which is my line prefaced with $objConn.


Edited by thepip3r (2005-04-13 05:11 PM)