spitfire333190
01-04-2006, 09:56 PM
My friend and I are creating a virtual pet site. We have most of it finished but the point system. Note: I do not know that much php/mysql!
Would it be something like this or am I really far from it-
$c_points=mysql_query("SELECT * FROM table WHERE username='username") or die(mysql_error());
$c_points=mysql_fetch_array($c_points);
$c_points=$c_points['points'];
$n_points=$c_points *Would I use a random function here?
mysql_query("UPDATE table SET points='$n_points' WHERE username='username'") or die(mysql_error());
Would it be something like this or am I really far from it-
$c_points=mysql_query("SELECT * FROM table WHERE username='username") or die(mysql_error());
$c_points=mysql_fetch_array($c_points);
$c_points=$c_points['points'];
$n_points=$c_points *Would I use a random function here?
mysql_query("UPDATE table SET points='$n_points' WHERE username='username'") or die(mysql_error());