hey..
i have this code...
pretty simple..... but when it is run.......
i get this...
...well....... what am i doing rong??
thnx !
i have this code...
| Code: |
| ( <b>";
$tutcountcat = $tutcat3['name']; $tutcountsql = mysql_query("SELECT COUNT (*) FROM tutorials WHERE category = '$tutcountcat'"); $tutcount = mysql_result($tutcountsql, 0); if ($tutcount == 0){ echo "0"; } else { echo $tutcount; } echo "</b> ) |
pretty simple..... but when it is run.......
i get this...
| Quote: |
| (
Warning: mysql_result(): supplied argument is not a valid MySQL result resource in C:\Program Files\Apache Group\Apache2\htdocs\Solo Themes\modules\tutorials\tutorials.php on line 32 0 ) |
...well....... what am i doing rong??
thnx !
