03.05.2014, 23:10
Uh, apparently it's valid syntax in MySQL after all. Just haven't seen anyone using it like that. It doesn't conform to standard SQL.
You should set the ID field in your table to auto increment. In the structure tab in phpMyAdmin click edit and tick the A_I checkbox for the ID field. Counting rows to find out the next id to insert is horrible.
You should set the ID field in your table to auto increment. In the structure tab in phpMyAdmin click edit and tick the A_I checkbox for the ID field. Counting rows to find out the next id to insert is horrible.