CodeCharge Studio
search Register Login  

Web Reporting

Visually create Web Reports in PHP, ASP, .NET, Java, Perl and ColdFusion.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> PHP

 working with date

Print topic Send  topic

Author Message
megat

Posts: 7
Posted: 10/06/2005, 8:01 PM

hello,
i have a form and it limit to time period
for example registration start at 1 Oct 2005 and registration closed at 31 Oct 2005....

my sql statment is

//Custom Code @32-711ABE52
// -------------------------
global $register;
$db = new clsDBfoundation();
$current_date = date('yyyy-mm-dd');
$SQL = "SELECT date_start, date_end FROM subject_info WHERE subject_info_id=1";
$db->query($SQL);

if ($db->f("date_start") <= $current_date && $current_date <= $db->f("date_end")) {
header ("Location: register.php");
} else {
header ("Location: register_closed.php");
}

// -------------------------
//End Custom Code

if time it's run... but if i change a date_start or date_end it not true..

thank you
View profile  Send private message
megat

Posts: 7
Posted: 10/06/2005, 8:05 PM

first time it's run... but if i change a date_start or date_end it not true..

thank you
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.