I have got
results1 = mysql_query("....")
results2 = mysql_query("....")
results3 = mysql_query("....")
results4 = mysql_query("....")
results5 = mysql_query("....")
Now, I have a function that checks if the results has no rows:
for ($n=1;$n<6;$n++) {
$results = $result.$n;
$rownumbers = mysql_numrows($results);
if ((!$rownumbers || $rownumbers<1) && ($n>0))
{
echo"Sorry, No Records Yet\n";
}
}
This seems very logical to me, and I tested, tested and testeed and each simple echo test shows that the results1,2,3..5 list properly..
but when I use the line: $rownumbers = mysql_numrows(), I get a warning that '1' is not a result...
AND, the first results returns nothing.. 2nd resutl returns the FRIST result...etc.
so to fix this, I used this function instead:
for ($n=2;$n<15;$n++) {
$results = $result.$n;
$rownumbers = mysql_numrows($results);
$m=$n-1;
if ((!$rownumbers || $rownumbers<1) && ($m>0))
{
echo"group[$m][0]=new Option('Sorry, No Records Yet')\n";
}
}
It works great now, but WHY DOESnt the first one work?
this is REALLY weird to me 🙁