Jump to content

[SOLVED] update


kev wood

Recommended Posts

the update will stop it from storing more than one value inside the table as well will it not???

 

I don't get that sentence... if you make an INSERT, yes there'll be two rows now and your UPDATE will update the two rows. All the rows in the table specifiied in your UPDATE.

Link to comment
Share on other sites

what ever the value of $i is is what the sent_messages field will be.  If there are more than 1 row, then all rows will be set to the value of $i

 

ex if more than 1 row with your current update script.

 

$i = valuei

 

id                sent_messages

1                      value1

2                      value2

3                      value3

 

will become

 

id                sent_messages

1                      valuei

2                      valuei

3                      valuei

 

 

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.