Jump to content

filter search


mdvignesh

Recommended Posts

I have some text boxes for searching the students in database

 

also i have a drop down box for selecting student with balance amount to be paid

 

tell me how to filter or search the list of stuents

<select>
            <option value="">All </option>
            <option value="">Unpaid </option>
            <option value="">Paid </option>
        </select>

Link to comment
https://forums.phpfreaks.com/topic/235001-filter-search/
Share on other sites

..and implemented..

<select name="status">
            <option value="">All </option>
            <option value="">Unpaid </option>
            <option value="">Paid </option>
        </select>
<?php
$sql = "select appropriate_columns from table_name where column_name='".$_POST['status']."'";
$result = mysql_query($sql);
?>

Link to comment
https://forums.phpfreaks.com/topic/235001-filter-search/#findComment-1207758
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.