Jump to content

waqas87

New Members
  • Posts

    4
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

waqas87's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. any help on Ajax ping code i Google it but found nothing ....
  2. sorry about here it is { <?php $Gueststatus="update tbl_guestuser set STATUS='0' Where USERNAME='$userG'"; mysql_query($Gueststatus); $Userstatus="update tbl_signup set loginststus='0' Where MemberUserName='$user'"; mysql_query($Userstatus); ?> alert('hi'); }
  3. i am trying to set user status as offline when user close browser but i am facing a problem ... i am calling a function when body unload which will set guest user status to "0" when user close the browser but it not working ... it execute php before function is called.. any idea why this is happening ...plz help it's making me crazy
  4. hi .. i am working on chat system ..there are two types of user one are register and other are guest and i have to add guest user..in to database as temporary so they can chat with each other the problem i am facing is with there names i want name like this (Guest1,Guest2,Guest3,Guest4,...so on..)..i am trying but it is not working on live server .. i have tested it on my local server using xampp server.. it worked but not on live server... here is the code which i am using if(isset($_SESSION['Guest'])) { $_SESSION['Guest']=$_SESSION['Guest']+1; } else { $_SESSION['Guest']=1; and one more thing how i can delete Guest users who are not online..
×
×
  • 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.