- $result = mysql_query("SELECT * FROM achievement ORDER BY achnr ASC");
- $charqry = mysql_query('SELECT * FROM characters WHERE char_name = "'.$_SESSION['charname'].'"');
- $return = mysql_fetch_array($charqry);
- while($row = mysql_fetch_array($result))
- {
- if($row['conditie'])
- etc.etc.
I've got a little problem with one of my scripts:
The if function is not working, it will always run the script, even if the condition is FALSE.
I was debugging this script and turns out if($row['conditie']) returns the right piece of information, but it adds a \ at the start, so for example it will return:
if(\$return['level'] >= 100)
I guess that's why it's not working? -if so, how do I solve it?