Hey there,
I have this PHP/MySQL ratingscript;
- The first file
(view.php) makes a list of filenames that needs to be rated.
- When someone presses the submit button and chose a certain rating, the $rate variable goes to file 2
(rate.php)
- The script in
rate.php calculates the new rating. And displays the new rating on the site.
MySQL table (rates):
rate_id | filename | num_votes | votes | rating
--------------------------------------------------
File 1 (view.php):
File 2 (rate.php):
Looking good, works fine.. BUT (hates this "but" -_-

then the script says:
Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result
resource in /public_html/scripts/rate.php on line 9
(That should be line:
<?php while ($row=mysql_fetch_array($rates_result))
{)?
I just can't seem to find the problem.. *scratches head*
I hope somebody does.. thanks in advance! ^_^
*waves~~