Jump to content

[SOLVED] Code stopped working


DeanWhitehouse

Recommended Posts

<?php
$timenow = date("Y-m-d h-m-s",strtotime("- 5 minutes"));
$select = mysql_query("SELECT last_active FROM user_details WHERE last_active >= '$timenow'") or die(mysql_error());
echo mysql_num_rows($select);
?>

This doesn't work on my page (to display amount of users online in the last five minutes)

but does work on my login page, but none of the main ones.

 

It did work and i have changed nothing, is there anything wrong with the code

Link to comment
https://forums.phpfreaks.com/topic/138506-solved-code-stopped-working/
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.