Hi Mike,
The query
$query="selct count(*) from users where sign=1";
should be "select" not "selct"
-and in future to know if there is any error in your queries you might want to check
this way:
if(mysql_query($query)
{
--do statements--
}
else
-error msg-
or even the following would be
echo "
Missing end quote and semicolon on this line may be the reason...
Try properly indenting and formatting your code. Also take advantage of
going in and out of php mode to seperate your code from your display of
content...
Ex:
instead of this:
$sContent"); ?>
Try this:
Or even this:
hi. this doesn't have to do with mysql_fetch_array. the following will
create that error :
echo "a $b['c'] d e f";
the following will not :
echo "a $b[c] d e {$f['g']} h i $j[$k] l 'm' n o p";
adjust accordingly. just posted a few words on this topic recently, can
view them here :
ht
3 matches
Mail list logo