Hello! This error goes to the admin site:

Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 8 in /home/httpd/vhosts/адресс-сайта/httpdocs/admin_tools/mails/config_mails.php on line 37 

This is the request itself (in this file admin_tools/mails/config_mails.php )

 $sql = mysql_query("SELECT `price` FROM `tb_config` WHERE `item`='cena_mails' AND `howmany`='1'"); $cena_mails_1 = mysql_result($sql,0,0); 

Where can there be a mistake? There are a lot of such identical errors, only swears on different files.

  • 2
    very similar to the fact that you have the result of running mysql_query zero, make the output $ sql. - Ridzhi
  • try to display the number of results obtained. - IVsevolod

1 answer 1

Well, they told you that most likely an empty result. If it is not clear how to do something like this.

 $sql = mysql_query("SELECT `price` FROM `tb_config` WHERE `item`='cena_mails' AND `howmany`='1'"); if (mysql_num_rows($sql)>0){ $cena_mails_1 = mysql_result($sql); }