anonymous
2010-12-31 12:26:03 UTC
[php]mysql_query("INSERT INTO prueba (`ID`, `NAME`, `DESCRIPTION`)
VALUES (NULL,'$name','$desc')") or die(mysql_error());
mysql_query(" ALTER TABLE prueba AUTO_INCREMENT = 1
VALUES (NULL,'$name','$desc')") or die(mysql_error()); [/php]
Error:
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 'VALUES (NULL,'ljnlkj','lkjh')' at line 2
help...