Hi,
I am doing that game script which involves scores
the mysql column is SMALLINT 5 Unsigned Default NULL
Everything works fine except
1 - MYSQL problem: Sometimes I need to update something, and when I submit with an empty score, mysql replaces the NULL by inserting a 0
2 - PHP problem: Sometimes I get a 2-0 score. In php, I tell it
$homescore = $game['homescore'] > -1 ? $game['homescore'] : '';
But PHP simply will not display it.
How do people handle games with PHP and Mysql?
Thanks