QUOTE(AmitTheInfinity @ 6 Jun, 2008 - 10:49 AM)

php
<?php
include ('dbopen.php');
$result = mysql_query("select * from stats where playernumber=1");
while($row = mysql_fetch_array($result))
{
if ($row['chips']=0) // do you mean this? -> if($row['chips']==0)
{
echo "My son, I have something for you";
echo "Here it is";
}
else
echo "It didn't work";
}
mysql_close($con);
?>
I am not comfortable with PHP [I wrote last line of PHP in Jan 2006

]. But All I can find in it was that if statement. see if that comment helps you.
Amit's solution should work for you. I'm going to rant for quickly on the use of = and ==.
When you said if
CODE
if $row['chips']=0;
What you were really doing was testing to see if $row['chips'] could be set to 0. It then set $row['chips'] to 0. The single equal space is your assignment operator. It assigns the right side to the left variable, but I'm sure you knew that already.
The double sign
CODE
if $row['chips'] == 0;
Tests to see if $row['chips'] is
equal to 0. It's very easy to get confused between the two when debugging, as it's something you don't typically look at.
Finaly, there is a triple sign you may see on occasion.
CODE
$x = 5
$y = "5";
if ($x === $y) {
echo "Same variable type";
}
The triple equals sign checks that the two variables are not only the same value, but the same
type of variable. In the above code, $x is an integer with a value of 5, while $y is a
string with the character 5. Using $x == $y would result to true, but $x === $y would result to false. PHP is a loosely typed language, as there's no strict use of variable types, so this can get confusing, especially if you've never used another language before.
Hope that's overkill on why the fix is what it is. Take care.