Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 10-02-2012, 05:57 PM   PM User | #1
aocnate
New to the CF scene

 
Join Date: Oct 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
aocnate is an unknown quantity at this point
Display MySQL Data in html table

Hello I'm trying to figure out how to display my MySQL rows in a HTML table.


I have the first and last names displaying, but I want to have a scrolling limit where the like begining of letter C will display in a second column in the HTML table, and the letter G in the third column etc...

I have no clue how to do this. Please help!

Here is the code I have so far
PHP Code:

//loop through displaying all results
        
        
while($row mysql_fetch_array($result)) {
            
$link '<a href="http://area1044.com/clearroutes/studentdetails.php?ID=' $row['studentid'] . '">' $row[$rowone] . ',  ' $row[$rowtwo] . '</a><br />';
            echo 
"<p>";
            echo 
$link;
            echo 
"</p>";
        } 
The output is just a list, a very long one to the left of the screen. Can I get some help?
aocnate is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 09:46 PM.


Advertisement
Log in to turn off these ads.