Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
hi, i have this codeCode: Select all
if ($_REQUEST["startdate"]) {
$startdate = $_REQUEST["startdate"];
} else {
$startdate = "2006-06-01";
}
$enddate = $_POST["enddate"];
if ($startdate) {
$sqlstart = "AND date(l.date) >= '" . $startdate . "' ";
}
if ($enddate) {
$sqlend = "AND date(l.date) <= '" . $enddate . "' ";
}Code: Select all
if ($startdate) {
echo "Start Date<br><input id=\"startdate\" name=\"startdate\" type=\"text\" size=\"25\"><a href=\"javascript:NewCal('startdate','ddmmyyyy')\">
<img src=\"javascript/cal.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Pick a date\"></a>";
}
if ($enddate) {
echo "End Date<br><input id=\"enddate\" name=\"enddate\" type=\"text\" size=\"25\"><a href=\"javascript:NewCal('enddate','ddmmyyyy')\">
<img src=\"javascript/cal.gif\" width=\"16\" height=\"16\" border=\"0\" alt=\"Pick a date\"></a>";
}hope you can help me. thanks very much.
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]