are there any id's in the table?
Normally the first thing i add in a table is an id, that way i can find specific info. So in this case i would just use:
$query = "select * from users WHERE id='1' ";
if you adding into the DB table, to get the next id you can:
$query = "select MAX(id) from users";
then add 1 to that id
Another question for Magic (or any other PHP Programmer)
- Magicfinger
- Staff
- Posts: 1078
- Joined: Tue Sep 30, 2003 10:38 am
- Location: here,there and everywhere