Hi there,
I was wondering if this
$c = mysql_num_rows(mysql_query("select * from action_6_weekly where code='$code'"));
is considered valid PHP?
Or do I need to do the following?
$r = mysql_query("select * from action_6_weekly where code='$code'");
$c = mysql_num_rows($r);
this is what i am actually doing:
if($entry == '9')
$c = mysql_num_rows(mysql_query("select * from action_6_5pts where code='$code'")) or die ('MYSQL ERROR: '.mysql_error().' in '.__FILE__.' on '.__LINE__.'.');
elseif($entry == 'a')
$c = mysql_num_rows(mysql_query("select * from action_6_10pts where code='$code'")) or die ('MYSQL ERROR: '.mysql_error().' in '.__FILE__.' on '.__LINE__.'.');
else
$c = mysql_num_rows(mysql_query("select * from action_6_weekly where code='$code'")) or die ('MYSQL ERROR: '.mysql_error().' in '.__FILE__.' on '.__LINE__.'.');
if($c > 0)
$waiting_for_reply = false;