Raised This Month: $ Target: $400
 0% 

preg_match


Post New Thread Reply   
 
Thread Tools Display Modes
8088
Veteran Member
Join Date: Jan 2008
Old 09-25-2011 , 13:18   Re: preg_match
Reply With Quote #21

PHP Code:
$sql 'SELECT * FROM players WHERE ban_time < '.date('U')+10800
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 09-25-2011 , 14:04   Re: preg_match
Reply With Quote #22

Is it ok ?

PHP Code:
$time_now date('U')+10800;
$time_diff $time_now $bantime
To get the difference ? (I want to get the time until ban lifts)
reinert is offline
8088
Veteran Member
Join Date: Jan 2008
Old 09-25-2011 , 14:35   Re: preg_match
Reply With Quote #23

Why don't you test it instead of asking us? If it does what you want it to do, it's probably ok. But $time_now is a badly chosen name.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
reinert
Veteran Member
Join Date: Feb 2007
Old 09-25-2011 , 15:06   Re: preg_match
Reply With Quote #24

why it's badly chosen name ? ;D
reinert is offline
8088
Veteran Member
Join Date: Jan 2008
Old 09-25-2011 , 15:51   Re: preg_match
Reply With Quote #25

time_now implicates the current time, which it isn't. It's the current time plus 10800 seconds.
__________________
steamID converter with OpenSearch browser plugin
8088 is offline
Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:25.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode