Change Age automatically
Posted: Sat Oct 31, 2009 4:55 am
hi guys . im new to php , is it possible to change age value in mysql automatically when year changes ?
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
$rows = mysql_query("SELECT * FROM user";) or die(mysql_error());
while ($x = mysql_fetch_array($rows)) {
mysql_query("UPDATE user SET age = age+'1'";)
}