Jump to content

[SOLVED] stoping forum flooding


runnerjp

Recommended Posts

for some reason my if statement does not work

<?php
$lastpost = $userinfo['last_post'];

echo $lastpost ;

if ( $lastpost <= 30 ) {echo 'dont flood';} else { echo  'your not flooding';}?>

 

it always echos your not flooding even if its been 5 seconds or 10 minutes..

 

echo $lastpost came out with 1226663481 so its grabing the time but i dont understand why its not echoing dont flood :S

Link to comment
https://forums.phpfreaks.com/topic/132690-solved-stoping-forum-flooding/
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.