Im trying to use the alter table function in mysql but I dont know if I am doing it right…
[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…