USING MYSQL AND PHP THE TABLE IN HTML. -----HELP

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
avmohan
Forum Newbie
Posts: 1
Joined: Mon Apr 23, 2007 3:46 am

USING MYSQL AND PHP THE TABLE IN HTML. -----HELP

Post by avmohan »

I WANT TO RETRIEVE FROM THE VALUE FROM ONE TABLE, AND I HAVE TO SHOW IN A TABLE. LIKE, ONE ROW ABOUT ONE PERSON PROFILE THEN ANOTHER ROW ABOUT ANOTHER PERSON PROFILE;

I AM TRYING ALL THE ROW SHOWING ONLY THE REPEATED VALUE? BUT I WANT NEXT ROW ABOUT ANOTHER VALUE FROM DATABASE.

PLEASE CAN U SUGESST ME.. USING MYSQL AND PHP THE TABLE IN HTML.
User avatar
Burrito
Spockulator
Posts: 4715
Joined: Wed Feb 04, 2004 8:15 pm
Location: Eden, Utah

Post by Burrito »

you'll have to loop over your result set and build the HTML within each iteration of the loop. If you only want to show one row, you can use the LIMIT clause in MySQL to only return one row or you could break out of your loop, or you could use an if() around your result set to only display one row.
Post Reply