Dawiss
Feb 25 2006, 01:57 PM
| | I need some help if somebody can help me out please doit ..
Ok here is the thing - I have an login box (works perfect) and I have MySQL database (works perfect).. Now I need to make thing like a list where shows everyone who is logged on.. But making it I need to use the same MySQl database and the same login box..
Example: when your write tour Login and password and press "Log-in!" opens page where is list of all logged in member..
If there is ant tutorial aor scripts/codes please help me becaus eit's very important..
Big Thanks alredy  |
Reply
Klass
Feb 25 2006, 02:07 PM
you need to write a query to pull the information from the database. something along the lines of CODE SELECT * FROM "db table" WHERE "column" = 1 Table is the table that has the column which sets the user to Logged in Column is the part that is 1 or 0.
Reply
Dawiss
Feb 25 2006, 04:10 PM
emm.. I found a tutorial where from database they take user IP adresses and lists them.. Maybe if I change the IP adresses to the Logins then they will show logged in member names not IP.. will it work? Thanks Klass for the idea and help  ..
Reply
jlhaslip
Feb 25 2006, 05:36 PM
You need 'something' to track those who are logged in. When they log-out, reset the field accordingly. Since we can't see your database fields, it is hard to determine whether the database already has something to use for this function. Or whether you would have to add something. Also, what if a User doesn't 'log-out" but simply closes their browser? How would you know if they are still logged in? Some things to consider.
Reply
Spectre
Feb 26 2006, 12:59 AM
I would suggest storing a timestamp of when the user logs in, updating it every time that user visits a page within your site. Then once they haven't been active for, say, 20 minutes, you mark the session as logged out. IPB uses something along these lines to determine how many users are currently active.
Reply
Dawiss
Feb 26 2006, 06:29 AM
Nice idea but where to get script like that Spectre.. because thats what would be perfect for my website  ..
Reply
Similar Topics
Keywords : users logged needed- How To Print In Php
- How to print to the users printer using PHP (9)
- Tools Needed!
- PHP & MySQL (9)
Hello, everyone! I need some tools for those two things to test PHP scripts coming together with
database on my laptop, instead checking them on a web-server which takes time....
Tutorial Needed?!
- PHP+Ajax (11)
I need many tutorials based on PHP programming language and AJAX technology. Those tutorials might
be of any kind. Please post only the links to the trusted and working tutorials!...
Creatting A Playlist Through Php
- script help needed (5)
Hi I am trying to make a script so that i can insert songs into a playlist, but i need a script in
which it opens the playlist file and removes the closing tag at the end, so before i can add more
entrys. e.g CODE <atx> <entry>Location 5</entry> <entry>Location
4</entry> <entry>Location 3</entry> <entry>Location
2</entry> <entry>Location 1</entry> <atx> But to add more entrys
i would have to get rid of the atx, then use the fputs to place the new entry into the file. ...
Admin Page
- Tutorial Needed? (4)
I need to look at a nice tutorial how do you create an admin access page with many functions as many
as possible....
Php Code Needed Iii
- (10)
Hello, everyone. I need your help again! Who might create the PHP code, the picture is
above this text. Basically, I want when the user fill in all the information in this form, it
automatically was sent to my email. And, then, the dialog box appears or on the same window, it was
said that your request has been sent. Moreover, if the user did not fill the entire information,
the dialog box appears stating that you did not fill some field. Thanks, for help. You always do
that....
Php Code Needed
- Working Together? (5)
Hello, everyone. I need your help again. This forum is quite good for it. Well, I need create a
registration form for my web-site using PHP and SQL. The information it should contain: 1) User
Name 2) First Name 3) Last Name 4) Password 5) e-mail Address 6) Security Image: that images helps
to protect a random registration, for instance, 56+2=where user have to type an answer in order to
finish registration. That's all for today. Anymore things, I will post another post over here.
...
Php Code
- Needed?! (15)
Well, I am a novice in PHP programming, so there is a script which I wanna get: 1. You go the
web-site 2. On the main screen, there is a some kind of field windows, the one you get used to type
in, when you go to google, for instance. 3. He or she types her email address and it's going to
be saved in my SQL database. 4. That's it. Help me if you can....
Looking For Command Line Based Sql Modification
- Program Needed For SQL? (1)
How I use Windows command prompt client and do modifications to my SQL database. If yes, please
write the commads I should know for that. If no, please get me the software with which I can do it.
Topic title modified. Proper English is always required when posting in our forum. ...
Slaed Cms
- Book Needed!!! (2)
Hello, everyone! I need some tutorial for Slaed Engine for any version you might find. I wanna
learn how you can make modules or blocks for this CMS. Especially, library functions and other
things that will make the web-site works like virtual library....
Script That Tracks The User Status
- how can I track on or offline users? (4)
long explaination: hey, I'm building a user profile site right now. And, I kinda know how to
make a online/offline detector, but not totally sure. I know I can make a mysql database to track
them, but how does it entrer the information? I could easily put in a field where when they login it
sets them to online, but if they don't sign out, and just exit the browser, how can I tell.
short: I want someone to tell me how to make a online/offline status detector, like they have here
on trap17. I'd be thrilled if you can post to this, thanks, arcticsnpr...
Wamp Packages Needed To Test Scripts
- Set up Apache, PHP, etc on your machine (1)
In order to test php scripts on your localhost machine, you require a system that includes php
parsing. A WAMP set-up 'usually' includes a database server, and a database manager, too.
For Windows machines, theses are usually referred to as WAMP because they include Apache, Mysql, and
PHP for Windows, hence the acronym WAMP. Wikipedia has a listing of the available packages with
details about the included versions and often a link to the wikipedia article describing them. The
list can be found at http://en.wikipedia.org/wiki/Comparison_of_WAMPs Personally, I...
Ipetsite Related Programming Help Needed
- iPetSite screwed me over (0)
Ok so i you are anyone here who would like to hlp me with these files, please pm me your email. Here
is what i need help with: Replacement of lost files Repair of corrupt files Configuring said files
Help with setting up the site If you can help me, please let me know. If you would like to be an
admin on my site, also let me know. Just I request that you don't post here unless you plan or
intend to help some how....
Php Help Needed Including File In A Page.
- (2)
i'm a noob in php programming, i can understand and modify php programs, but i dont know to
write on my own. So please somebody who is well versed in php help me. My need is, I'm
currently builiding a knowledge base website , i've my own design for the website, check here,
http://laschatz.info/kzone/ Each page in the left hand site has a tree navigation of all the
topics available. Since this information must be same in all the pages, presently I need to change
all the pages after adding a new category. Could you please help me in such a way that I can ad...
Add Users On Email Program With Php?
- (1)
First of all Marry Christmas, Well so i am in some kind of a problem, i can't find out how to
add users to my mail service, i have no idea what SMTP/IMAP program the server runs, neither does
the system administrator. But it should be kinda the same thing for all of them if i am not wrong,
Anyways i have full access to server so i can do whatever i want to do, i have SSH access too (Root
access /rolleyes.gif" style="vertical-align:middle" emoid=":rolleyes:" border="0"
alt="rolleyes.gif" /> )...
Php - Fsockopen, Get, Etc - Help Needed
- (1)
Hi I am writing a PHP script that gets the search results from here . I can get the results from
the first page fine, but when I try to get the next page, it doesn't return the correct results.
Try comparing the results from here , and searching for "Vampire" (In the "Name" text box) here .
The first page of results is the same, but when you go on the the second page of results, they are
totally different. This I think is because the "persist_search" (see the URI on the Planet Elder
Scrolls Search) always seems invalid. Is there any reason why the PHP would get...
Help Needed With Directory/file Listing Code Infinite Loop
- Made an infinite loop but why is this so? (5)
Hi all ive got a small and simple (for the moment atleast /unsure.gif"
style="vertical-align:middle" emoid=":unsure:" border="0" alt="unsure.gif" /> )file and directory
listing script in php as follows CODE $dir = "."; $num = 0; $file =
scandir($dir); while($file = scandir($dir)){ echo
$file[$num]; echo "<BR>"; $num = $num + 1;
}; the concept is simple enough, the directory to start with is the current one, so scan this
directory and wh...
A Very Simple Album Problem, Help Needed.
- (3)
Hey, I created a page album.php, it shows all the images of a user xxx. and its url is like
album.php?nick=xxx. Now suppose there are 2 images in this user album, one image id is 111 and
second image id is 112.now how i can link to the each image of the album so that it looks like ,
album.php?nick=xxx&image_id=111. and album.php?nick=xxx&image_id=112. I hope you understand it....
Help Needed With Silly Error
- (8)
Hi i have made a stupid error on one of my pages and having trouble finding it. It says unexpected
')' on line 114 can anyone please help me find it? Here is the page: CODE <? /** *
* @package TibiaME Clan/Download Site * @version 1.00 2006/09/27 00:04:37 wappy * @copyright
(c)2004-2006 wappyCULT * @home http://hack.s-60.org * @license You can use/modify this
script but distributing it without permisinn, or removing the "Script By: wappy" link
will invalidate your license and give wappy (wappyCULT) FULL RIGHTS to ...
php header() function help needed
- automatic re-direct (4)
hey ppl, u seem to have real gud knowledge about php, i just wanted a little help...i designed this
website, but i want that if i click on certain page, it should open for some few seconds and then
browser should automatically redirect me to some other page....i tried this with header() function
but i couldnt do the wait n redirect part, ... so somebody plz help.... -thanx in advance!...
Adding Users To Databases Using Phpmyadmin
- (2)
I am running my own apache server with PHP and MySQL, with phpMyAdmin on my own computer, to test
things locally. I know how to create databases and how to create users, but how can I add a user to
a database?...
Users Online Script In Php
- how do i get one? (7)
I've been seeing a whole bunch of sites that have a Statistics corner, and in there, there are
things that says "Users Online:", "Page Loads:", "Unique Hits:", and "IP:". Well, I was wondering,
where do these users get one of these nifty things? I know that PHPNuke offers one, but most of the
sites that I go to do not use PHPNuke. Any reply is appreciated. /smile.gif' border='0'
style='vertical-align:middle' alt='smile.gif' /> ...
Script: Phpbb Mod, Total Users Registered
- Display the total users anywhere on your site. (1)
This is for phpBB V2+ It displays the total number of registered users anywhere you want. This file
is called: phpbb-totalusers.php CODE <?php /** * ©2005 Craig lloyd. All rights reserved. * *
Mod Title: Total Registered Users * Author: Craig Lloyd * Description: Shows
total number of registered users * Release: v1.2, 10th May 2005 *** * Demo:
http://www.toxicsims.co.uk/ (stats box) * Installation Level: Easy *
Installation Time: 1 minute * Files To Edit: This one * Included Files...
Php Sessions
- Multiple users using the same login (2)
Hi, I'm realtively new to PHP and I'm considering creating some login functionality.
However I want a group of users to use the same loginname and password. They will be loggin infrom
different machines. The users will know they are sharing the account. Can anyone give me an idea
of what kind of effect this might have on my sessions? Will it create any odd hiccups or other
strange things?...
Visitors Online
- With PHP (no MySQL is needed) (9)
Another script, which shows the visitors onlineat the moment in your site. This script was not made
by me, I just think it will be very usefull to u. CODE <? $timeout = 15; // change
it. It is the timer which will delete the member of online list (in minutes) if
(!$datei) $datei = dirname(__FILE__)."/online.txt"; $time
= @time(); $ip = $REMOTE_ADDR; $string =
"$ip|$time\n"; $a = fopen("online.txt", "a+");
fputs($a, $s...
Visitors Counter
- With PHP (no MySQL needed!) (4)
Well, here we will make an hit counterusing php and an *.txt file. This script is so simple, but
very usefull. First, le'ts make an file called counter.php, with the following codes inside:
CODE <? $file = 'counter.txt'; // this is the file where the number of visitors
will be written $fopen = fopen("$file", "r"); // open the text
file $count = fread($fopen, 1024); // read the text file fclose($fp);
// close the text file $count = $count + 1; // add one more hit echo ...
Calling All Php Programmerss Help Needed
- as soon as possible (2)
hello people im currently working on an open source web software installer kinda like fantastico ,
but actually for webservers running apache on windows based systems and the biggest part of this
will be an update website, where people that have already got this installed can actually update the
existing packages, i have already figured out how the downloads work but im kinda running out of
ideas, so if anyone has any idea what i could include please tell me, jus give me the idea and ill
try sort out the code. so any suggestion all i have got so far is 1.i know how to ge...
Looking for show, users, logged, needed
|
|
Searching Video's for show, users, logged, needed
|
advertisement
|
|