write data from address field to mysql : I am trying to write data to mysql from address field. In the address field I write address [http://ortex.lt/esp.php?id=1&t=12&h=45][1]
My esp.php file have this code:

    if ($id == '1') {
    	$total = mysql_result(mysql_query("SELECT count(*) FROM `esp1`"),0);
    	mysql_query("INSERT INTO `esp1` (temp,hum) values ('".$temp."','".$hum."') ");
    }
I get mistake

    Fatal error: Uncaught Error: Call to undefined function mysql_result() in /home/orexlt/domains/ortex.lt/public_html/esp.php:13 Stack trace: #0 {main} thrown in /home/orexlt/domains/ortex.lt/public_html/esp.php on line 13

where are could be mistake?

  [1]: http://ortex.lt/esp.php?id=1&t=12&h=45