Jump to content

Croatiangrn

New Members
  • Posts

    2
  • Joined

  • Last visited

Croatiangrn's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. I got the problem here. In this file popular_games.php there is a function GameUrl... And it's supossed to print out 10 images with link to a game on server. When I start that script on my computer it works fine but when I upload it to http://www.keevik.com it's not working on my index page.. Help?! php.zip
  2. <?php function item_Exists($table, $item) { $table = mysql_real_escape_string($table); $item = (int)$item; $query = mysql_query("SELECT COUNT(id) FROM '$table' WHERE 'id' = $item"); return (mysql_result($query, 0) == 1) ? true : false; } function rate($table, $item, $rating) { $table = mysql_real_escape_string($table); $item = (int)$item; $rating = (int)$rating; mysql_query("UPDATE '$table' SET 'ukupno_glasova' = 'ukupno_glasova' + $rating, 'glasanje' = 'glasanje' + 1 WHERE 'id' = $item"); } ?> so this is my code, and when i start this script it gives me error : "Warning: mysql_result() expects parameter 1 to be resource, boolean given in C:\xampp\htdocs\glasanje\core\func\rating.php on line 9" help?
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.