Re: mysql help!! urgent!

From: Date: Fri, 16 Mar 2001 06:44:24 +0000
Subject: Re: mysql help!! urgent!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-44225@lists.php.net to get a copy of this message
> Warning: Unable to jump to row 0 on MySQL result index 2 in > /home/sites/site3/web/showthumb on line 71 > > --here is my code Change it to look like this: > $connetion = mysql_connect("localhost","cel34243","s2343223") or die($php_errormsg); > $query = "select images from celeb where name=\"$dir.\" "; > $result = mysql_db_query("celebzone", $query) or die(mysql_error()); > $imagesnum= mysql_result($result, "images"); You are missing an argument there... You need a row number in front of "images". Also, you probably don't have any rows that matched your criteria, so asking for the first row (row 0) is bad. -- Visit the Zend Store at http://www.zend.com/store/ Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#44225) next »