Java Forums

Main Menu
Home
Today's Posts
FAQ
Search
Contact Us

Java Network
Linux Archive
Java Tips
Java Tips Blog

Sponsored Links





Welcome to the Java Forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community, you will:

  • have access to post topics
  • communicate privately with other members (PM)
  • not see advertisements between posts
  • have the possibility to earn one of our surprises if you are an active member
  • access many other special features that will be introduced later.

Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact us.

Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 02-02-2008, 07:17 PM
Member
 
Join Date: Jan 2008
Posts: 4
sireesha264 is on a distinguished road
Problem with applying Sql order by to html table
Hi to all,

I am having a web page,I want to apply sql order by command to html table.

TestCase_asc=select * from mytable order by testcase asc;
TestCase_desc=select * from my tableorder by testcase desc;
user_asc=select * from mytable order by user asc;
user_desc=select * from my tableorder by user desc;


My html table:

TestCase User
test1 ANTONY
Count ZXc
Compare ABC

When user clicks on fields,Records should sort by calling above sql commands.
Any one please give me the code for this.

Thanks in advance
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 02-02-2008, 09:06 PM
jelly's Avatar
Member
 
Join Date: Jan 2008
Location: Somerset, UK
Posts: 46
jelly is on a distinguished road
Do you already have code to create the table, if so post it and then people can start to explain how you would change what you have
__________________
-- Hope that helps
Bookmark Post in Technorati
Reply With Quote
  #3 (permalink)  
Old 02-04-2008, 12:20 PM
Member
 
Join Date: Jan 2008
Posts: 4
sireesha264 is on a distinguished road
My table is as follows,Pease any body give me the idea.
<table>
<tbody>
<tr>
<th>TestCase</td>
<th>User</td>

</tr>
<tr>
<td>test1</td>
<td>ANTONY</td>
</tr>
<tr>
<td>Count</td>
<td>ZXc</td>
</tr>
<tr>
<td>Compare</td>
<td>ABC</td>
</tr>
</tbody>
</table>

Thanks in advance.
Bookmark Post in Technorati
Reply With Quote
Sponsored Links
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Problem with jTable that is binded with a table in MySQL Database rajkenneth NetBeans 0 03-29-2008 05:36 PM
Generate Excel Report from a HTML table Sudha New To Java 0 02-13-2008 10:24 PM
Problem with sorting Table sireesha264 Advanced Java 0 02-08-2008 04:21 PM
Showing ResultSet in HTML table Java Tip Java Tips 0 01-27-2008 10:09 PM
Problem with '/' character in HTML and JSP Marcus JavaServer Pages (JSP) and JSTL 2 07-04-2007 07:32 AM


All times are GMT +3. The time now is 02:14 PM.


VBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright ©2006 - 2007, www.java-forums.org