abs0lut Posted October 16, 2008 Share Posted October 16, 2008 the new post link will appear if the user didn't post for today once, the new post link will not appear if the user already posted one. then, tomorrow the new post link will appear. could you please help me? Quote Link to comment Share on other sites More sharing options...
obsidian Posted October 16, 2008 Share Posted October 16, 2008 Try something like this, replacing your variables or values where appropriate: <?php $sql = mysql_query("SELECT COUNT(post_id) FROM posts WHERE DATE(post_time) = CURDATE() AND posted_by = $user_id"); if (mysql_num_rows($sql) == 0) { // User has not posted today, so show the link } ?> Quote Link to comment Share on other sites More sharing options...
abs0lut Posted October 16, 2008 Author Share Posted October 16, 2008 thank you Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.