i'm a beginner in php..i tried to display the record of the db in php. i create the variable to see the next record by $q=row+1 to display the next record of same country.. but it didn't appear. it recurr the first record...i don't know the problem, can help me ...

i'm a beginner in php..i tried to display the record of the db in php. i create the variable to see the next record by $q=row+1 to display the next record of same country.. but it didn't appear. it recurr the first record...i don't know the problem, can help me ...

You're going to have to elaborate a little bit more for me to throw any suggestions your way. From what I've read, you're trying to display a list of countries from a database?

you can retrieve database information like this:

while($r=mysql_fetch_assoc(mysql_query("select * from your table")))
{
echo $r['yourfield'];
}
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.