Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6764395
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T14:35:20+00:00 2026-05-26T14:35:20+00:00

I have a database that have two tables. The sql query fetching data correctly.

  • 0

I have a database
that have two tables.
The sql query fetching data correctly.
I want to sort fields data by typing table heading in text box and click on go that in table footer.
Many Thanks

<table border="0" cellpadding="0" cellspacing="0" width="50%">
    <thead>
        <tr>
           <th class="capt" colspan="6">Available Projects</th>
        </tr>
        <tr>         
                    <th>Select</th>
                    <th>Project</th>
                    <th>Crawler</th>
                    <th>Description</th>                        
                    <th>Status</th>
                    <th>Action</th>
         </tr>
    </thead>
    <tbody>
    <?php
    include(dirname(__file__)."/includes/dbConn.php");  

            $result = mysql_query("SELECT *, ( SELECT name FROM projects WHERE projects.id = crawlers.pid ) AS pname FROM `crawlers`", $appConn);

                while($row = mysql_fetch_array($result))
                  {
?>
            <tr id="crawler_<?php echo $row['id']; ?>">                        
                    <td>
                        <input  value="" id="check" type="checkbox"> 
                        <input id="crawler_id_<?php echo $row['id']; ?>" type="hidden" value="<?php $row['id']; ?>" />  <!-- crawler id -->
                    </td>
                    <td><?php echo $row['pname']; ?></td>
                    <td><?php echo $row['name']; ?></td>
                    <td>username@domain.com</td>                        
                    <td>Enabled</td>
                    <td><a class="edit" href="#">edit</a><a class="add" href="#">run</a><a class="delete" href="#">delete</a></td>
            </tr>
           <?php  } ?>
    </tbody>
     <tfoot>
            <tr>
                    <th colspan="6"> Sort Fields by <input value="type here" id="field" type="text"> <a href="#" class="add">Go</a> </th>
            </tr>
     </tfoot>


</table>
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T14:35:21+00:00Added an answer on May 26, 2026 at 2:35 pm

    I think, you are looking for ORDER BY

    Have a look at the MySQL Documentation about the SELECT syntax: http://dev.mysql.com/doc/refman/5.0/en/select.html

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a database two tables and a linking table that I need a
I have two simple tables in my database. A card table that contains Id,
I have two tables in my database schema that represent an entity having a
I have a database that has two tables. These two tables are defined as:
I have an Access database that has two tables that are related by PK/FK.
I have a stored procedure in a MS-SQL 2005 database that: Creates two temp
I have a table in a SQL Server 2005 Database that is used a
I have a SQL Server 2005 database with two tables: Order, LineItem. Each LineItem
Background I have an Android project that has a database with two tables: tbl_question
I have two tables in my SQL database: mysql> select *from crop; +------+-----------+----------+ |

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.