Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
Thread: update row data?
02-18-2012, 03:26 PM #1
- Join Date
- Feb 2012
- Thanked 0 Times in 0 Posts
update row data?
well I have this table `massages` and have these rows:
so if I want just to update the date2 with php what I should then insert inside SQL query?
02-19-2012, 06:31 AM #2
To change just one field in one record, you would do something like
You would, of course, use the date you really want and the id you really want.Code:UPDATE message SET date2 = '2012-2-18' WHERE id = 17
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.