Jump to content

Need some help calculating win percentage here's my code


blackgold

Recommended Posts

I'm a total newb, but here's my code.  I have a cell colored a certain color if it's a win.  I'm trying to calculate my win percentage.

 


$test1 = mysql_query("SELECT COUNT(*) from mytable WHERE color=#ABD66F * '100'";
$test2 = mysql_fetch_row($test1);
echo "$test2[0]";

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.