RE: [PHP] Users Online?

2009-06-20 Thread David Swenson
Chris, If it were me (and let me warn you, there's probably 100 different ways to do this), but If I was using a table to log them into a "control panel (CP)" of sorts, I'm sure you have other DB querries to handle the CP stuff it self, correct? Well if your already taking the time to create a DB

Re: [PHP] Users Online?

2009-06-20 Thread Paul M Foster
On Sat, Jun 20, 2009 at 01:33:52PM -0700, Chris Payne wrote: > Hi everyone, > > I have a login system that allows a user to login to my control panel, > is there an easy way so that I can tell how many users / what users > are logged into my system? What would I need to do to add this with > the

Re: [PHP] isset question

2009-06-20 Thread Paul M Foster
On Sat, Jun 20, 2009 at 12:20:56PM +0100, Ashley Sheridan wrote: > On Sat, 2009-06-20 at 00:19 -0400, Paul M Foster wrote: > > On Fri, Jun 19, 2009 at 07:52:40PM +0100, Ashley Sheridan wrote: > > > > > On Fri, 2009-06-19 at 12:36 +0100, Ford, Mike wrote: > > > > On 18 June 2009 20:25, LAMP advised

RE: [PHP] PHP Mail Function

2009-06-20 Thread David Swenson
Julian, >From my understanding of PHP's mail() function, it doesn't do anything more than send to the address you specified. On that note, I'd check things like: Email address typos The email your sending to your domain, is it already being forwarded? If so, do you get the email at your gmail acc

[PHP] RE: [PHP-DEV] PHP 5.3.0RC4

2009-06-20 Thread Johannes Schlüter
Hi, On Fri, 2009-06-19 at 12:13 +0200, Uwe Schindler wrote: > /pangaea/install/php-5.3.0RC4/ext/pdo_mysql/mysql_statement.c: In function > `pdo_mysql_stmt_dtor': > > /pangaea/install/php-5.3.0RC4/ext/pdo_mysql/mysql_statement.c:52: error: > structure has no member named `stmt' Which MySQL client

Re: [PHP] Users Online?

2009-06-20 Thread Michael A. Peters
Chris Payne wrote: Hi everyone, I have a login system that allows a user to login to my control panel, is there an easy way so that I can tell how many users / what users are logged into my system? I assume there is since many community applications (IE bulletin boards) show logged in users.

[PHP] Users Online?

2009-06-20 Thread Chris Payne
Hi everyone, I have a login system that allows a user to login to my control panel, is there an easy way so that I can tell how many users / what users are logged into my system? What would I need to do to add this with the minimum of hassle? Would I just have to look at the sessions that are cu

RE: [PHP] resubmit form after validation error

2009-06-20 Thread Caner BULUT
Hi, You can use a variable to that. Like following. Example if the variable is 1 you start to processing form input. Example mailto:af.gour...@videotron.ca] Sent: 20 June 2009 22:55 To: php-general@lists.php.net Subject: [PHP] resubmit form after validation error I'm having a bit of a time fi

[PHP] Re: redirect to a static page

2009-06-20 Thread O. Lavell
Vit wrote: > Hi all, > > I'm trying to understand how to redirect to a static page > > here you are the code (it seem to be a stupid code, but I'm just > debugging. > > > header( "Location: http://www.google.com"; ); > ?> > > instead of being redirect to www.google,com, I get t

[PHP] PHP Mail Function

2009-06-20 Thread Julian Muscat Doublesin
Hello Everyone, I have written an e-mail function that sends e-mail to my domain that forwards it to a gmail account. When I use the gmail address directly it works fine. When I use my mail domain i don't get anything. Has anyone experienced this? Can anyone give me some advice? Thanks in advan

[PHP] resubmit form after validation error

2009-06-20 Thread PJ
I'm having a bit of a time figuring out how to resubmit a form after obligatory field missing error. The problem is that the page is accessed from a search page href where the uri is like = file.php$=123. Since the method="post" action="file.php?= does not work nor does PHP_SELF, I have set the act

Re: [PHP] isset question

2009-06-20 Thread Gary
Yes... I echo the code onto the page as well as sending out the message. The echo is sort of a "thank you" page, this is what you submitted. A message, which is not going into a DB, is also emailed to the submitter and cleint. Gary "Waynn Lue" wrote in message news:d29bea5e0906181231r165c584

Re: [PHP] isset question

2009-06-20 Thread Reese
Waynn Lue wrote: I notice that you're checking $_POST['mort'] but you're echoing $mort, is that your actual code? That was my observation as well. Is $mort = $POST['mort']; being set somewhere else or not? If not, how is your script supposed to know what value $mort should be? And, what the ot

Re: [PHP] Multi-Sort -- how to do this?

2009-06-20 Thread tedd
At 3:36 PM -0400 6/18/09, Robert Cummings wrote: tedd wrote: At 1:45 PM -0400 6/18/09, Robert Cummings wrote: Thanks to Rob and Daniel for also playing, better luck next time. :-) <- note smiley -- I do appreciate your time. Mine version retains key associations. It wasn't a complete waste of

Re: [PHP] Calendar

2009-06-20 Thread tedd
At 7:58 PM +0100 6/19/09, Ashley Sheridan wrote: On Fri, 2009-06-19 at 15:30 +0530, Sudheer Satyanarayana wrote: salmarayan wrote: > Does Any body please have the code of A Java Script Calendar that works with > a PHP Html Form.. > if yes can you please send it as i have one but does not

Re: [PHP] isset question

2009-06-20 Thread Ashley Sheridan
On Sat, 2009-06-20 at 00:19 -0400, Paul M Foster wrote: > On Fri, Jun 19, 2009 at 07:52:40PM +0100, Ashley Sheridan wrote: > > > On Fri, 2009-06-19 at 12:36 +0100, Ford, Mike wrote: > > > On 18 June 2009 20:25, LAMP advised: > > > > > > > using !empty() instead isset() will work if you don't care