Re: [PHP] Re: Need login suggestions

2010-05-02 Thread Bobby Pejman
I would also agree that allowing parent registration could be risky. What you may be able to do just off the top is create a UserLevel field in your users table and assign value 1 for all those who say they're students. That is, if you have no student ids at your disposal. Then, when parents

[PHP] Overwrite value of true or false in PHP

2009-09-07 Thread Bobby Pejman
Hi, I noticed that the following returns a 1. echo (12) ? True : False I was under the impression that true/false are of type boolean and not int. But in php anything other than 0 translates to true, meaning a 1. What I am trying to achieve is for a 1 to be a 1 and a true or false to be a

Re: [PHP] Overwrite value of true or false in PHP

2009-09-07 Thread Bobby Pejman
On Mon, Sep 7, 2009 at 4:14 PM, Bobby Pejman bpej...@gmail.com wrote: Hi, I noticed that the following returns a 1. echo (12) ? True : False I was under the impression that true/false are of type boolean and not int. But in php anything other than 0 translates to true, meaning a 1. What

Re: [PHP] how to check function's execution?

2009-09-07 Thread Bobby Pejman
Your dbupdate is probably executing a mysql_query command. Is so, update results from mysql_query will be either true on success or false on failure. If your query also fails due to perms it will return false. --Original Message-- From: A.a.k To: php-general@lists.php.net ReplyTo:

Re: [PHP] PHP6 Stable Release Schedule

2009-09-05 Thread Bobby Pejman
Very nice! Use of E_STRICT notifies the user of deprecated functions. Thanks for the note. :) I read that E_ALL forces variable declaration, though I have yet to get that working in my code. --Original Message-- From: Richard Heyes Sender: richard.he...@gmail.com To: Bobby Pejman Cc

[PHP] PHP6 Stable Release Schedule

2009-09-04 Thread Bobby Pejman
Hi, Does anyone know when the stable release of PHP6 be ready for download? I hear there's a lot of goodies in version 6 including built-in Caching. Yum. Also, will PHP ever implement the Strict mode similar to Perl's 'using Strict'? Thanks, Bobby