I have the following script
<?php
mysql_connect("", "", "") or die(mysql_error());
mysql_select_db("") or die(mysql_error());
$sql = mysql_query("SELECT * FROM world_cup WHERE username ='$username'")
or die(mysql_error());
while($info = mysql_fetch_array( $data ))
if ( $a == $b ) {
echo "$c";
} else {
echo "$d";
}
?>
What I am trying to do is, if the values of fields a&b are the same display the value of field c, if a&b are not the same display the value of field d.
I am not getting any error messages when the page loads in my browser, but it's not displaying any data!
Can anyone help, where have I gone wrong.
Many thanks