Click here to Skip to main content
15,923,681 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: Multithreading with Multi-Core and Linux Pin
Thanh.VD20-Oct-08 16:59
Thanh.VD20-Oct-08 16:59 
AnswerRe: Multithreading with Multi-Core and Linux Pin
markkuk23-Oct-08 0:43
markkuk23-Oct-08 0:43 
GeneralRe: Multithreading with Multi-Core and Linux Pin
Thanh.VD27-Oct-08 6:18
Thanh.VD27-Oct-08 6:18 
Questionsorting on cloumn headers acending and desanding Pin
umeshdaiya18-Oct-08 1:40
umeshdaiya18-Oct-08 1:40 
AnswerRe: sorting on cloumn headers acending and desanding Pin
Mohammad Dayyan18-Oct-08 9:04
Mohammad Dayyan18-Oct-08 9:04 
GeneralRe: sorting on cloumn headers acending and desanding Pin
umeshdaiya19-Oct-08 21:13
umeshdaiya19-Oct-08 21:13 
AnswerRe: sorting on cloumn headers acending and desanding Pin
Jules VDV29-Jan-09 8:44
Jules VDV29-Jan-09 8:44 
AnswerRe: sorting on cloumn headers acending and desanding Pin
Ranjit Viswakumar29-Jan-09 12:40
Ranjit Viswakumar29-Jan-09 12:40 
There would be 3 components to this process-

1. User-facing page with <div id=data></div>
2. AJAX Javascript
3. Dynamic PHP page

The user-facing page will contain an empty div marked by an ID. The AJAX script will be something like-

http://whatsaranjit.com/includes/grabData.js[^]

Lastly, the PHP page will contain a script like-
$sql = "SELECT * FROM table";
if (isset($_GET['q'])) {
  $q = $_GET['q'];
  $sql .= " ORDER BY $q ASC";
}


On your user-facing page, you can make your table header a hyperlink-

<a href='javascript: grabData('headerName', 'data', page.php)'>Sort</a>


When you click the link, it will refresh the SQL query data into the div named 'data' appending the SQL query to order by whatever variable you pass to the AJAX script. You can expand on this to to get it to ascend/descend. Good luck!

Ranjit Viswakumar
Professional Services Specialist
rviswakumar@hostmysite.com
http://hostmysite.com/?utm_source=bb[^]
QuestionNeed Linux Libraries Pin
gtag16-Oct-08 1:58
gtag16-Oct-08 1:58 
AnswerRe: Need Linux Libraries Pin
Divyang Mithaiwala16-Mar-09 0:50
Divyang Mithaiwala16-Mar-09 0:50 
Questionmysql date Pin
UD(IA)13-Oct-08 22:49
UD(IA)13-Oct-08 22:49 
AnswerRe: mysql date Pin
Perspx19-Oct-08 19:56
Perspx19-Oct-08 19:56 
GeneralRe: mysql date Pin
umeshdaiya19-Oct-08 21:14
umeshdaiya19-Oct-08 21:14 
Questionpdf not supporting chinies characters Pin
UD(IA)13-Oct-08 21:25
UD(IA)13-Oct-08 21:25 
Questionjavascript validation & how to use in php Pin
umeshdaiya13-Oct-08 20:23
umeshdaiya13-Oct-08 20:23 
AnswerRe: javascript validation & how to use in php Pin
Perspx19-Oct-08 1:29
Perspx19-Oct-08 1:29 
AnswerRe: javascript validation & how to use in php Pin
Ranjit Viswakumar29-Jan-09 12:51
Ranjit Viswakumar29-Jan-09 12:51 
Questionphp checkall delete all records Pin
umeshdaiya11-Oct-08 3:52
umeshdaiya11-Oct-08 3:52 
AnswerRe: php checkall delete all records Pin
Mohammad Dayyan13-Oct-08 4:22
Mohammad Dayyan13-Oct-08 4:22 
AnswerRe: php checkall delete all records Pin
Ranjit Viswakumar29-Jan-09 13:18
Ranjit Viswakumar29-Jan-09 13:18 
QuestionHelp to use apache tomcat 6.0 in NetBeans6.0.1 Pin
hamid zamani10-Oct-08 22:23
hamid zamani10-Oct-08 22:23 
Questioncalendar conrol Pin
umeshdaiya10-Oct-08 20:06
umeshdaiya10-Oct-08 20:06 
AnswerRe: calendar conrol Pin
umeshdaiya11-Oct-08 3:53
umeshdaiya11-Oct-08 3:53 
GeneralRe: calendar conrol Pin
evden eve nakliyat20-Dec-08 15:13
evden eve nakliyat20-Dec-08 15:13 
Questiondata save on button click Pin
umeshdaiya9-Oct-08 4:21
umeshdaiya9-Oct-08 4:21 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.