Ok -
First off: ALWAYS reference fields by their ID number - you always want an ID field in your databses.
So:
to UPDATE:
$sql = "UPDATE table SET field = value WHERE id='$id'";
You can use as many field/value pairs as you want, just seperate by a comma.
For example:
$sql = "UPDATE table SET name='$name',date='$date' WHERE id='$id'";
The WHERE clause is important - otherwise, all records in the database will be updated.
to delete:
$sql = "DELETE FROM table WHERE id='$id'";
where $id is the id of the record you want to delete. And no it won't throw things off. It'll go along just fine 🙂
Say you havea table with 5 records, ID's 1,2,3,4,5 - and you run a delete on record 3. Next time you enter a record, it won't fill in that 3 - it will just create a new record, ID 6. No problems there.
Hope I helped!
[ [ Chris ] ]