Search results

  1. K

    session_is_registered(username) equivalent in $_SESSION -PHP

    you can use the isset() function here's a sample session_start(); if( !isset( $_SESSION['username']) ){ echo 'Unauthorized access'; die(); } hope this helps...
  2. K

    php Date()

    $time1 = '2009-04-27 09:18:10'; $time2 = '2009-04-27 11:18:10'; $time_diff = strtotime($time2) - strtotime($time1);//in seconds echo ($time_diff / 3600);//in hours here's the solution dude enjoy ;)
  3. K

    Mysql+join+count

    gptsven I gave you the true solution for the problem it's the left join if you fail to see that it's up to u i've done my work here...
  4. K

    Mysql+join+count

    You see the problem lies in using the left joins. any row even it doesn satisfy the join condition will be fetched that's why u r getting a wrong count. so either use inner joins or post ur table structures and the result you want to get maybe i can help...
Top