View Full Version : Find Row
zTeve
05-31-2003, 06:50 PM
how do you use the function: mysql_tell_row
I just get the error: Call to undefined function: mysql_tell_row()
Spookster
05-31-2003, 08:40 PM
I am assuming you are using PHP? There is no such method in PHP.
zTeve
06-02-2003, 06:24 PM
thats bad...yeah Iam using php but I found the command in a MySQL manual...??
Is there some other way to find out what row the data is on???
Spookster
06-02-2003, 08:06 PM
$query = "SELECT yaks FROM yakstable WHERE yaks = 'firepages'";
$result = mysql_query($query);
$row_number = 0;
while($row = mysql_fetch_array($result){
if($row['yaks'] = "firepages")
echo "Data was found on row number $row_number";
else
echo "Data was not found.";
$row_number++;
}
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.