•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the PHP section within the Web Development category of DaniWeb, a massive community of 427,416 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,488 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our PHP advertiser: Lunarpages PHP Web Hosting
Views: 4584 | Replies: 1
![]() |
•
•
Join Date: Sep 2004
Posts: 2
Reputation:
Rep Power: 0
Solved Threads: 0
I only started last week with php mysql(be nice)
I have a MySQL db where a user can enter contact info, usually stuff:
FirstName
LastName
Address
City
State
Zip
I return this info to a php page which shows all info in db.
$result = mysql_query("SELECT * FROM contacts");
I would like to make some sort fields for the page. Sort by LastName or Sort by State.
I know how to write the sql for the query for the db, what I am unsure of is how to use it on the php page and get the page re-displayed when the label is clicked?
hope thats clear. thank you for your time.
I have a MySQL db where a user can enter contact info, usually stuff:
FirstName
LastName
Address
City
State
Zip
I return this info to a php page which shows all info in db.
$result = mysql_query("SELECT * FROM contacts");
I would like to make some sort fields for the page. Sort by LastName or Sort by State.
I know how to write the sql for the query for the db, what I am unsure of is how to use it on the php page and get the page re-displayed when the label is clicked?
hope thats clear. thank you for your time.
![]() |
•
•
•
•
•
•
•
•
DaniWeb PHP Marketplace
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
Similar Threads
- Text field does not enable on refresh (JavaScript / DHTML / AJAX)
- modify script (Perl)
- refresh page one time only.. (PHP)
- Please I need help formatting an output file and sorting the names! (C++)
- calculating dynamic field names (JavaScript / DHTML / AJAX)
- Simple ASP.Net Login Page (Using VB.Net) (ASP.NET)
Other Threads in the PHP Forum
- Previous Thread: PHP .tpl format template help! URGENT!
- Next Thread: error installing Apache


Linear Mode