|
-
Jun 2nd, 2002, 12:07 PM
#1
Thread Starter
Hyperactive Member
Update 2 records in the same time
this code:
$sql = "UPDATE members SET id = id + 1 WHERE id = '4'";
to Update one record(id)
but I want to update 2 records in the same time I use this code but it does not work:
$sql = "UPDATE members SET id = id + 1,UserName=$username WHERE id = '4'";
what is the error in this code ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|