I have no idea where i am going wrong here lol… it looks like it SHOULD work but so far nothing is working lol Please help
What i am trying to do is make 1 table Read Another Table so IF level = level Then Show maxexp on level table
My tables are set up so under Users Table there is level and exp
and on my level table there is level and maxexp
i want users to show the exp and level table to show maxexp heres my code.
[CODE]
$data = mysql_query(“SELECT * FROM users WHERE username = ‘$username'”)
or die(mysql_error());
$info = mysql_fetch_array( $data );
$data2 = mysql_query(“SELECT * FROM levels WHERE level = ‘info'”)
or die(mysql_error());
$info2 = mysql_fetch_array( $data2 );
if ($info[‘level’] = $info2[‘level’])
{
Print “”.$info[‘exp’] . ” “;
Print “/ “.$info2[‘maxexp’] . ” “;
}
else
{
Print “”.$info[‘exp’] . ” “;
Print “/ “.$info2[‘maxexp’] . ” “;
}