Jump to content

Date Range


kenw

Recommended Posts

I want to allow users to insert a start date and an end date for them to re-query my database. I understand how to do the select statement based on between start date and end date. I don't understand how to get my submit button to re-query the table and only display those dates between the range.

 

I have this in a table:

 

<table width="575px"  border="1" align="center" cellpadding="3" cellspacing="0">

<tr>

        <td class="input_label">Date Range</td>

<td>

        <table>

              <tr>

                  <td><?php input_date("due_date_begin", ""); ?></td>

                  <td>to</td>

                  <td><?php input_date("due_date_end", ""); ?></td>

  <td colspan="2" align="center">

          <input type="submit" class="button" value="Submit">

          </td>

            </tr>

        </table>

</td>

</tr>

</table>

 

When I click on the submit button, nothing happens.

 

Any pointers, help is appreciated.

 

Thanks.

 

Ken

Link to comment
https://forums.phpfreaks.com/topic/150768-date-range/
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.