Menu
I’ve used javascript a lot, but I’m new to php and databases. I am trying to manipulate data in a mysql database.
I add a row using
[CODE]$sql = “INSERT INTO items (`ID`, `item`) VALUES(”, ‘$new_item’)”;
and I want the ID that is automaticaly incremented. How can I do this?
The ID field is set to autoincrement and key. I use DB.php.