note 7596 added to mysql_query

From: Date: Tue, 08 Aug 2000 14:36:37 +0000
Subject: note 7596 added to mysql_query
Groups: php.notes 
Request: Send a blank email to php-notes+get-646@lists.php.net to get a copy of this message
i have this following command. My problem is that in one server it works. However, in another server it is not working. Meaning to say it is returning a false value. $sql = "INSERT DELAYED INTO Company (CoName,UserID,passWord,SignUpDate,Address1,Howto,Industry,Profile,Email,URL,ContactPerson,Designation,VoiceNum,FaxNum,CountryCode,AreaName) VALUES ('$CoName','$UserID','$CryptPassword','$SignUpDate','$Address1','$Howto','$Industry','$Profile','$Email','$URL','$ContactPerson','$Designation','$VoiceNum','$FaxNum','$Jobs_Country','$Jobs_Area')"; if(!$result = mysql_query($sql)){ DisplayErrMsg("Error on INSERT, RECORD NOT ADD");} else{ printf("<body onload=\"javascript:window.alert('Successful Corporate Sign-up');self.location.href='http://%s/%s/menu1.php3'; \">", $HTTP_Host, $docRoot); } http://www.php.net/manual/function.mysql-query.php

« previous php.notes (#646) next »