473,382 Members | 1,409 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,382 software developers and data experts.

HTML Sorting of a MySQL Table

w33nie
56
What I want is for my MySQL database to be printed on a mostly html based page, with links on the top of each column, saying what information is contained in the columns below.
Then all I want is for these links to be a simple <a> link, but all they do is sort the mySQL table below when clicked.
Is this possible?

example..
<a ????="<?php
$query = mysql_query('SELECT * FROM `stats` ORDER BY number DESC LIMIT 0, 64') ?>">Number</a>
just something like that, simple.

But if it isn't possible, how else could I do it?
Jul 29 '07 #1
3 2328
mwasif
802 Expert 512MB
Moved from MySQL to PHP Forum.
Jul 29 '07 #2
kovik
1,044 Expert 1GB
What I want is for my MySQL database to be printed on a mostly html based page, with links on the top of each column, saying what information is contained in the columns below.
Then all I want is for these links to be a simple <a> link, but all they do is sort the mySQL table below when clicked.
Is this possible?

example..
<a ????="<?php
$query = mysql_query('SELECT * FROM `stats` ORDER BY number DESC LIMIT 0, 64') ?>">Number</a>
just something like that, simple.

But if it isn't possible, how else could I do it?
I've had someone ask this question to me over at DevNetwork. You can see this simple example I gave here.
Jul 29 '07 #3
w33nie
56
Thanks, I'll post anything further in there.
Jul 31 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

3
by: josh dismukes | last post by:
/// here is the code i'm getting a parse error on the last line of the code which /// is </html> any help will be much appreciated. <?php session_start ();
0
by: Alex Kovach | last post by:
This simple command always takes 0.30 seconds or longer: mysql> select foo from footable order by -foo limit 20; (get the 20 most recent foo's) This however, always takes 0.0 seconds: ...
3
by: Raghuram Banda | last post by:
Hi, I was strucked in a problem, basically I'm working on Sortable Table and the table is created using HTML Tags and one of the fields in the table contain Date in unix format (something like...
4
by: Gareth Gale | last post by:
I'm trying to implement a way of allowing a user to sort a HTML table via Javascript on the client. I've seen lots of samples where single column sorting (asc or desc) is shown, but I'd like nested...
5
by: ReGenesis0 | last post by:
This is... I guess more of a programming structure question than anything. How does one index the popularity of something? Overall usage? How does recent-term popularity come in? Is there an...
2
by: Philippe Signoret | last post by:
If this is in the wrong group lemme know and I'll re-post it to the correct one. I am using PHP and MySQL. Suppose I have a table named "servicios" with 5 columns and 200 rows. If I want to...
18
by: agarwalsrushti | last post by:
Hi, Ive created a form in html and written code in hp tht takes data feom html and stores it in MySQL database. Bt wen i click on the submit button i get an error. Instead of storing it in database...
1
pradeepjain
by: pradeepjain | last post by:
Hii, i need help in sorting multidimensianal array... i Read the multi sort function cld not use tht so i need help..This is the code. here the problem is tht i need to take out values...
1
by: parimi | last post by:
hi this is pawanparimi doing mca working on a project "conducting online examination",i have a table in mysql database, the table schema is RANKS=student_id, section1, section2, section3, totalmarks,...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.