Jump to content

[SOLVED] Q> Locating the position of records in the database using PHP


Recommended Posts

I've done it by my self haha

 

this is the code I've made

 

$query=mysql_query("SELECT * FROM animals");

while($row = mysql_fetch_array($query) and $row['animal'] !="dog")

{

 

  $count+=1;

}

echo print "The Dog is Located at # ".$count+1;

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.