note 4915 deleted from odbc_exec by ronabop

From: Date: Thu, 17 Aug 2000 09:38:30 +0000
Subject: note 4915 deleted from odbc_exec by ronabop
Groups: php.notes 
Request: Send a blank email to php-notes+get-2125@lists.php.net to get a copy of this message
why when I try to delete a register that doesn't exist odbc_exec doesn't return FALSE? how can I now that a delete operation has failed? example: <?php $DSN = "Courseware"; #Deletes a user $link_id= odbc_connect($DSN,$USER,$PASSWORD); $resultado=odbc_exec ($link_id, "delete * from estudiantes where Nombre = '$ENombre' "); if ($resultado) print "The student $ENombre has been deleted"; else print "The student $ENombre doesn't exists"; odbc_close_all ?>

« previous php.notes (#2125) next »