Hello everybody
I have fixed it
Thank you very much for you help
Have a nice day.
Thank you !!!!!!!!!!!
User Profile
Collapse
-
hello
i Have now this code but i see nothing in de database in the column user_status.
What do i wrong
Code:<?php // Get database connection include 'database.php'; $sql = mysql_query("UPDATE chat_users SET user_status='active' WHERE id='$user_status' "); $sql_doublecheck = mysql_query("SELECT * FROM chat_users WHERE id='$user_status' AND
Leave a comment:
-
hello
I made the script that the user can login once.
If he is logged in,you can not go to the login form.
That is working fine.
If you open another browser then i can not hide the form and the user can login for the second time.
The user-status column stays emty so i think there is a bug in the script.
The second login makes the first login invisible user.Leave a comment:
-
-
I have this code:
Code:// check user is logged in session_start(); //check if the session exists if($_SESSION['login']) { //this means they are logged in header("Refresh:0;URL=http://www.to website with link to chat/");return; }
Last edited by Frinavale; Aug 16 '12, 06:13 PM.Leave a comment:
-
Thank you very much
Ty very much now i can go on with my script.
Have a nice day.
:)...Leave a comment:
-
user can login twice by using different browser
How can i make a code in php that user can not login twice by using 2 different browsers.
I have in my database a colom user_session.
If he logs in in Ie 2 times ,the second time he re-direct to the main page.
In firefox or chrome my code works too.
But if you use 2 browsers you can login twice.
My site is a chatsite.
with 2 user inlog 1 inlog is invisible and one not.
...
No activity results to display
Show More
Leave a comment: