I have this field on my database
email, addition
so what i want is that WHERE email='$email'
it will look that the data user had for addition. now for addition field we have 100,100,1000
how can i compute this with the echo 1200
my code is NOTE this is just a sample scriptcode i can't copy and paste my code here because it was long. so if you find typo error ignore it.
$sql = mysql_query( "SELECT * FROM user WHERE email = '$email' ") or die(mysql_error());
while ( $row = mysql_fetch_array($sql) ){
echo $row[addition] ++;
}
yes i know its not correct format. what should i change? do i need to use for or foreach? in order to add those computation?
tghanks