Re: [PHP] Two color rows in table inside while iteration -- just say no to mod

2010-05-02 Thread Jochen Schultz
> [snip] And unless we are adding a multiple seconds to the load time is anyone going to notice a difference of 1 second? yes regards Jochen -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
> -Original Message- > From: Karl DeSaulniers [mailto:k...@designdrumm.com] > Sent: Monday, May 03, 2010 12:03 AM > To: PHP > Subject: Re: [PHP] Need login suggestions > > I see, well I have a login that has multiple levels and here is how I > have it. > Obvious pertinent info has been cha

Re: [PHP] Need login suggestions

2010-05-02 Thread Karl DeSaulniers
I see, well I have a login that has multiple levels and here is how I have it. Obvious pertinent info has been changed, but you can adopt and add your own. a config file with userlevel values EG: $parent = 2; //Parent Level $student = 1; //Student Level $guest = 0;//Guest level A define.php

RE: [PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
> -Original Message- > From: Karl DeSaulniers [mailto:k...@designdrumm.com] > Sent: Sunday, May 02, 2010 11:44 PM > To: PHP > Subject: Re: [PHP] Need login suggestions > > Hi Ashley, > I would have your database that is attached to this part of the > website, > verify with another database

Re: [PHP] Need login suggestions

2010-05-02 Thread Karl DeSaulniers
Hi Ashley, I would have your database that is attached to this part of the website, verify with another database that stores all your student and parent info for your school and when they register, you can actually check against a database of students that actually attend the school and the pa

Re: [PHP] Need login suggestions

2010-05-02 Thread Nilesh Govindarajan
On 05/03/2010 10:33 AM, Ashley M. Kirchner wrote: -Original Message- From: Paul M Foster [mailto:pa...@quillandmouse.com] Sent: Sunday, May 02, 2010 10:53 PM To: php-general@lists.php.net Subject: Re: [PHP] Need login suggestions The only reliable way to resolve this is to let the school

RE: [PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
> -Original Message- > From: Adam Richardson [mailto:simples...@gmail.com] > Sent: Sunday, May 02, 2010 10:59 PM > To: php-general@lists.php.net > Subject: Re: [PHP] Need login suggestions > > Just be cautious with FERPA guidelines (which can actually get quite > confusing) if you're doing

RE: [PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
> -Original Message- > From: Paul M Foster [mailto:pa...@quillandmouse.com] > Sent: Sunday, May 02, 2010 10:53 PM > To: php-general@lists.php.net > Subject: Re: [PHP] Need login suggestions > > The only reliable way to resolve this is to let the school > administration to handle it. Each r

Re: [PHP] Need login suggestions

2010-05-02 Thread Adam Richardson
On Mon, May 3, 2010 at 12:42 AM, Angus Mann wrote: > We're building a large site for a school district, to be used by both >> students and parents. When a student logs in, they gain some access to >> the >> site, and when a parent logs in, they gain access to other sections on the >> site. That

Re: [PHP] Need login suggestions

2010-05-02 Thread Paul M Foster
On Sun, May 02, 2010 at 08:09:07PM -0600, Ashley M. Kirchner wrote: > Slightly OT, but I can't think of a better forum to ask this in. I'm sure a > lot of us here have at some point or another built a system that requires > registration to gain access. What I'm trying to figure is how to set > d

RE: [PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
> -Original Message- > From: Angus Mann [mailto:angusm...@pobox.com] > Sent: Sunday, May 02, 2010 10:43 PM > To: Ashley M. Kirchner; php-general@lists.php.net > Subject: Re: [PHP] Need login suggestions > > It sounds like it really doesn't matter how you do it. Nothing bad > happens > if a

Re: [PHP] Need login suggestions

2010-05-02 Thread Mark Kelly
Hi. On Monday 03 May 2010 at 03:49 Ashley M. Kirchner wrote: [snip] >So what if a student registers on the wrong side of the wall? Nothing > happens [snip] > Kids would be registering for a > photo contest, parents will be registering for something completely > different. You might try ch

Re: [PHP] Need login suggestions

2010-05-02 Thread Angus Mann
We're building a large site for a school district, to be used by both students and parents. When a student logs in, they gain some access to the site, and when a parent logs in, they gain access to other sections on the site. That's all fine and dandy, it's the actual registration process tha

[PHP] How do I use date_diff in my code (both codes are included, mine and the example function) I need process.php

2010-05-02 Thread justino garcia
HOw would I use this function below, from this url http://php.net/manual/en/function.date-diff.php I need to output the subject, date, and the final answer to the calcuation of the time difference (say from e.g. 10:00 AM to 12:00 PM) . Getting total time wrked on at a job site, doing helpdesk. I am

RE: [PHP] Re: Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
> -Original Message- > From: Bobby Pejman [mailto:bpej...@gmail.com] > Sent: Sunday, May 02, 2010 8:30 PM > To: Nathan Rixham; Ashley M. Kirchner > Cc: php-general@lists.php.net > Subject: Re: [PHP] Re: Need login suggestions > > I would also agree that allowing parent registration could b

[PHP] RE: Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
> -Original Message- > From: Nathan Rixham [mailto:nrix...@gmail.com] > Sent: Sunday, May 02, 2010 8:21 PM > To: Ashley M. Kirchner > Cc: php-general@lists.php.net > Subject: Re: Need login suggestions > > Ideally you need to be able to unambiguously identify either a student > or a paren

RE: [PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
> -Original Message- > From: Nathan Rixham [mailto:nrix...@gmail.com] > Sent: Sunday, May 02, 2010 8:39 PM > To: Ashley M. Kirchner > Cc: php-general@lists.php.net; Nilesh Govindarajan > Subject: Re: [PHP] Need login suggestions > > Ashley, > > I think Nilesh, (and later both Bobby & I),

Re: [PHP] Need login suggestions

2010-05-02 Thread Nathan Rixham
Ashley M. Kirchner wrote: >> -Original Message- >> From: Nilesh Govindarajan [mailto:li...@itech7.com] >> Sent: Sunday, May 02, 2010 8:20 PM >> To: php-general@lists.php.net >> Subject: Re: [PHP] Need login suggestions >> >> Its a very bad idea to allow public registration for parents, inst

Re: [PHP] Re: Need login suggestions

2010-05-02 Thread Nathan Rixham
Bobby Pejman wrote: > 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 di

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

RE: [PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
> -Original Message- > From: Nilesh Govindarajan [mailto:li...@itech7.com] > Sent: Sunday, May 02, 2010 8:20 PM > To: php-general@lists.php.net > Subject: Re: [PHP] Need login suggestions > > Its a very bad idea to allow public registration for parents, instead > the school IT department s

[PHP] Re: Need login suggestions

2010-05-02 Thread Nathan Rixham
Ashley M. Kirchner wrote: > Slightly OT, but I can't think of a better forum to ask this in. I'm sure a > lot of us here have at some point or another built a system that requires > registration to gain access. What I'm trying to figure is how to set > different levels of access. > > > > We'r

Re: [PHP] Need login suggestions

2010-05-02 Thread Nilesh Govindarajan
On 05/03/2010 07:39 AM, Ashley M. Kirchner wrote: Slightly OT, but I can't think of a better forum to ask this in. I'm sure a lot of us here have at some point or another built a system that requires registration to gain access. What I'm trying to figure is how to set different levels of access

[PHP] Need login suggestions

2010-05-02 Thread Ashley M. Kirchner
Slightly OT, but I can't think of a better forum to ask this in. I'm sure a lot of us here have at some point or another built a system that requires registration to gain access. What I'm trying to figure is how to set different levels of access. We're building a large site for a school distr

Re: [PHP] Two color rows in table inside while iteration

2010-05-02 Thread Nathan Rixham
Paul M Foster wrote: > On Fri, Apr 30, 2010 at 01:52:25PM -0400, tedd wrote: > >> At 10:34 AM -0400 4/30/10, Paul M Foster wrote: >>> On Thu, Apr 29, 2010 at 05:34:38PM -0400, tedd wrote: >>> >>> > Please critically review my example. >>> >>> +1 >>> >>> This thread came up before, and tedd's solu

Re: [PHP] Joomla FrameWork ::

2010-05-02 Thread Andre Polykanine
Hello Nick, That means that the function SetVar is situated in the jRequest class. So if you want to modify the function, for example, you need to know where the class jRequest is situated. -- With best regards from Ukraine, Andre Skype: Francophile; Wlm&MSN: arthaelon @ yandex.ru; Jabber: arthae

Re: [PHP] Re: wondering how to catch notice errors properly

2010-05-02 Thread Hans Åhlin
Thanks for that, it saved me some thinking when I reach the error handling class with in my project. ** Hans Åhlin Tel: +46761488019 http://www.kronan-net.com/ irc://irc.freenode.net:6667 - TheCoin **

Re: [PHP] Two color rows in table inside while iteration [X-PHP]

2010-05-02 Thread tedd
At 11:53 PM -0400 5/1/10, Paul M Foster wrote: On Fri, Apr 30, 2010 at 01:52:25PM -0400, tedd wrote: > All the code I provide on this list and on my various web sites is for free for anyone, except for "governments" (i.e., local, state, federal, other), to use, review, and/or comment as they

[PHP] Re: Object or such for building a directory tree?

2010-05-02 Thread tedd
At 1:49 AM +0200 5/2/10, Michelle Konzack wrote: Hello tedd, Am 2010-05-01 11:54:45, hacktest Du folgendes herunter: Now on to your problem. You want to take a multidimensional array that contains the names of directories and names of the files contained therein and show them in a file tree

Re: [PHP] Any One See where this is going wrong?

2010-05-02 Thread Gary
at? > > I'm still hopeful you'll get this figured out before there's any > blood-loss > ;) > > Feel free to send back the new code after the edits if you still have > issues. > > Adam > > -- > Nephtali: PHP web framework that functions beautifully > http://nephtaliproject.com > > > > __ Information from ESET Smart Security, version of virus > signature database 5078 (20100501) __ > > The message was checked by ESET Smart Security. > > http://www.eset.com > > Adam What I ended up doing was I rebuilt the entire thing from start. I created one table with one column, made sure it worked, then added a few more, then added the child table. The only thing that I can think of is that I had one of the columns named "id", and maybe that is not allowed. I also just had the form processed on itself, but I cant really imagine that would have anything to do with it. I'll post the code later if interested, I am still adding columns, but the child is working so that would seem to be the only real challenge. Thanks for all your input. Gary __ Information from ESET Smart Security, version of virus signature database 5080 (20100502) __ The message was checked by ESET Smart Security. http://www.eset.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Joomla FrameWork ::

2010-05-02 Thread Nick Balestra
Thank a lot for pointing me to this, as you wrote u are right, haven't started yet with oo so of course i wasn't able to understand what was this all about. thanks again Nick On May 2, 2010, at 4:52 PM, viraj wrote: > hi nick, > :: is what we call 'scope resolution operator', $this is your 'cu

Re: [PHP] Joomla FrameWork ::

2010-05-02 Thread viraj
hi nick, :: is what we call 'scope resolution operator', $this is your 'current scope'. i guess you better read http://www.php.net/manual/en/language.oop5.php.. all sections :)) ~viraj On Sun, May 2, 2010 at 8:11 PM, Nick Balestra wrote: > I am trying to understand how the joomla framework w

[PHP] Re: Joomla FrameWork ::

2010-05-02 Thread Nick Balestra
I think si related to class and methods, JRequest Class have a method called setVar, right? if this is correct sorry for posting the question, i just haven't started yet classes and methods...;-) On May 2, 2010, at 4:41 PM, Nick Balestra wrote: > I am trying to understand how the joomla framewor

[PHP] Joomla FrameWork ::

2010-05-02 Thread Nick Balestra
I am trying to understand how the joomla framework works, i see an heavy usage of " :: " in its code, here an example: function edit () { JRequest::setVar('view, 'single'); $this ->display(); } from my really basic php understanding in the func

Re: [PHP] Project TIME calculated, in PHP

2010-05-02 Thread Peter Lind
On 1 May 2010 22:02, Richard Quadling wrote: > On 1 May 2010 18:48, justino garcia wrote: >> tImeArrived = CDate(InputBox("Enter START time:", "Start time", "9:00 AM")) >> TimeLeft = CDate(InputBox("Enter END time:", "End time", "1:24 PM")) >> Minutes = DateDiff("n", TimeArrived, TimeLeft) >> Hou