PHP
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
Go Back   Web Development Archives Mailing Lists PHP

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Web Development Archives Sponsor:
  #1  
Old July 24th, 2008, 11:51 AM
Dan Shirah
Guest
Dev Archives Newbie (0 - 499 posts)
 
Posts: n/a  
Time spent in forums:
Reputation Power:
IPB post date check

Luca,

You said you have access to the board's DB, correct?

Just from looking at the link you provided I can see that somewhere in the
database it does store the date/time of each post. So, to meet your
conditions your query should be something simple like this:

//
$username = $_PST['user_name'];
$begin_date = "01/01/2001";
$end_date = "01/01/2008";
$register_before_date = "01/01/2008";

$query = "SELECT username,
register_date,
message_date
FRM table_1,
table_2
WHERE username = '$username'
AND message_date BETWEEN '$begin_date' AND '$end_date
23:59:59.997'
AND register_date <= '$register_before_date'"

Then get your result setif it isn't empty, that user matches your
criteria and can access the forum. if you don't want an array you could
just do a SELECT **** and then assign the value to a variable and check
something like: if ($count 0) { allow access }

Hope that helps.
Dan

Reply With Quote
Reply

Viewing: Web Development Archives Mailing Lists PHP > IPB post date check


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2009 by Developer Shed. All rights reserved. DS Cluster 2 Hosted by Hostway
Stay green...Green IT