RE: [PHP-DB] What wrong with my Query??
| From: | Bastien Koert | Date: | Fri, 25 Mar 2005 05:34:00 +0000 |
| Subject: | RE: [PHP-DB] What wrong with my Query?? | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-39036@lists.php.net to get a copy of this message | ||
limit is a mysql keyword...change that field name and the corresonding names in your sql
bastien
From: "HarryG" <harry1980@gmail.com> To: php-db@lists.php.net Subject: [PHP-DB] What wrong with my Query?? Date: Fri, 25 Mar 2005 16:26:38 +1100 What the hell is wrong with this MYSQL query?? PHP keeps giving me the error message: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'limit=20000, name='test1', email='atest@test.com', password='t $query = "INSERT INTO mfadmin SET id='', account='$accname_lc', limit=$plans, name='$yourname', email='$email', password='$password', lastlogin='$datetoday', datecreated='$datetoday', expiry='$expirydate', lastip=123.123.123.123"; This is my table structure CREATE TABLEadmin(idint(10) unsigned NOT NULL auto_increment,accountvarchar(50) NOT NULL default '',limitint(10) unsigned NOT NULL default '0',namevarchar(50) NOT NULL default '',passwordvarchar(50) NOT NULL default '',lastloginvarchar(50) NOT NULL default '',datecreatedvarchar(50) NOT NULL default '',expiryvarchar(50) NOT NULL default '',lastipvarchar(50) NOT NULL default '', PRIMARY KEY (id) ) TYPE=MyISAM;