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!
Hi
i am pulling data from the database.
i would like it to appear so that the user can click on the column head on the page and it would sort the data by the selected data head...
here is the code so far... the connection has been made to the database, and at the moment, it only pulls the data up and sorts by hotelname...
This is what i've tried so. and seem to be havin problems with it, nothin is appearin on the page now, and i'm thinkin its a small error on my behalf....
Change thispage.php to whatever your file is named, and concatenate the conditional bit of the query onto the $query variable before you execute it with mysql_query().
Now that astions has sorted out your code tags you can clearly see some quote conflicts. Either escape the troublesome quotes or use some concatenation (as well as the other things I mentioned).