RE: [PHP] error in mysql SQL syntax

From: Date: Fri, 12 Dec 2003 19:06:53 +0000
Subject: RE: [PHP] error in mysql SQL syntax
Groups: php.general 
Request: Send a blank email to php-general+get-172593@lists.php.net to get a copy of this message
rdkurth@starband.net <mailto:rdkurth@starband.net> on Friday, December 12, 2003 12:43 AM said: First I'm going to +1 Jason's comment. Then I'm going to give you a tip. > Could somebody tell me way I am getting an error in this SQL syntax. > $query = "insert into majordomoaliases > (domain,address)values(\"$domname\",\"$virtdomain-majordomo: \"|$wrapper > majordomo -C $domaincf\")"; I think one of your problems is very bad code formatting. Try cleaning it up as well as replacing all the \" with ' and see what happens. hth, Chris. -- Don't like reformatting your Outlook replies? Now there's relief! http://home.in.tum.de/~jain/software/outlook-quotefix/

« previous php.general (#172593) next »