Jump to content


Photo

[solved] online now?


  • Please log in to reply
24 replies to this topic

#21 pro_se

pro_se
  • Members
  • PipPipPip
  • Advanced Member
  • 131 posts

Posted 26 August 2006 - 06:46 AM

Parse error: parse error, unexpected T_DOUBLE_ARROW in /var/www/dev.php on line 32

32: if ($time => $mem) {

#22 radar

radar
  • Members
  • PipPipPip
  • Advanced Member
  • 645 posts
  • LocationSLC

Posted 26 August 2006 - 06:50 AM

try swapping the order >= that might be the way...

#23 pro_se

pro_se
  • Members
  • PipPipPip
  • Advanced Member
  • 131 posts

Posted 26 August 2006 - 06:55 AM

Warning: mysql_result() [function.mysql-result]: Unable to jump to row 0 on MySQL result index 10 in /var/www/dev.php on line 31

31: $mem = mysql_result($mem, 0);

#24 radar

radar
  • Members
  • PipPipPip
  • Advanced Member
  • 645 posts
  • LocationSLC

Posted 26 August 2006 - 07:30 AM

Okay try changing the query I gave you to this (both lines of $mem other than the result)..

$mem = "SELECT last_activity FROM users WHERE username = '$user_name'";
$mem = mysql_query($mem) or die("Error: ". mysql_error(). " with query ". $mem); // what's wrong?

change it to that -- run it again and then tell me what it says...

#25 pro_se

pro_se
  • Members
  • PipPipPip
  • Advanced Member
  • 131 posts

Posted 26 August 2006 - 08:18 AM

hey maan! i did some serious deep meditation... lol... i used the first code u gave me and modified to with an if and else and changed the time diff to 5 min and $username = $_SESSION... and guess what! it worked!!!!!! solved.




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users