|
-
May 4th, 2002, 02:37 PM
#1
Thread Starter
Hyperactive Member
Update record
I have table it's name Members contain this field (ID,username,Number)
How can I go to the recode that it's ID=4 and add 1 to Number
-
May 4th, 2002, 03:12 PM
#2
Fanatic Member
PHP Code:
$sql = "UPDATE members SET id = id + 1 WHERE id = '4'";
if you are adding members in, and want to increment the id everytime you add one, just set the 'id' field to auto increment
Visit www.fragblast.com
Gaming, forums, and a online RPG/Battle system
(__Flagg) DOT NET? is this a Hindi Dating service?
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
|