SQL update does insert?

From: Date: Wed, 12 Jul 2000 04:33:53 +0000
Subject: SQL update does insert?
Groups: php.general 
Request: Send a blank email to php-general+get-6056@lists.php.net to get a copy of this message
Greetings folks, The following SQL works fine in myAdmin, but when run through PHP 3.0.5 it insists on creating a new record rather than updating the existing line. $q = "update jump set ordinal=$ordinal,label='$label',url='$url' where idx=$idx )"; $r = mysql_query( $q ); $r seems to come out of this undefined <?> print $r; gives back nothing. Echoing the query string looks quite as I expect it should; appropriate quotes and string values everywhere. I'm quite baffled. The idx column is not null auto_increment primary key, ordinal is int(4), the other two are varchar. Guesses and/or clues? Erik ================================================================= Internet service provided by telus.net http://www.telus.net/

« previous php.general (#6056) next »