Originally posted by d00dle
I know it's wrong somewhere but I'm not sure where...
it subtracts but it doesn't umm.. do anything else o_o.
mysql_query('INSERT INTO `lotto` (`username`) VALUES ("'.$uname.'")');
[/B]
It looks like you're enclosing the string (in the resulting SQL) in double quotes. I can't remember if MySQL accepts that or not; I always use single quotes.
From what you describe, the first SQL statement is executing, but the others aren't. My guess is there is something wrong with the SQL statements themselves. Either MySQL doesn't like the double quotes as I've suggested, or something else.
Any time you do "mysql_query($query);" you should instead be doing "mysql_query($query) or die(mysql_error());". ALWAYS. That way when something goes wrong you'll get an error message telling you exactly what went wrong where, instead of letting the script think everything is fine leaving you scratching your head. A little bit of error checking can save hours of debugging.