Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread M. Sokolewicz
Actually, I disagree with the explenation here. The reasoning behind it is correct, but the explenation contains a number of incorrect statements. The = (a single '=') is the so-called assignment operator. This operator assigns the right-hand value to the left-hand variable. So, when you write

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Erik Johnson
Woohoo! I got it to work. Thanks everyone! This is exactly what I needed: making multiple-page files in one file. It saves me the hassle of trying to know what file is what, and where. Instead.. one big file! On 12/18/05, Łukasz Hejnak <[EMAIL PROTECTED]> wrote: > > Erik Johnson napisał(a): >

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Łukasz Hejnak
Erik Johnson napisał(a): Okay.. I was just wondering; What's the difference between = and ==? Would it matter if I changed them? It seems as though if I put = instead of the =='s, it comes up ONLY page two no matter what $page equals, and if it's ='s instead of =='s, then it comes up with only p

Fwd: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Erik Johnson
very easy or normal questions. > > Zareef Ahmed > > > - Original Message - > From: "Erik Johnson" < [EMAIL PROTECTED]> > To: > Sent: Sunday, December 18, 2005 10:59 AM > Subject: Re: [PHP] Someone please help me with this PHP script. > > >

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Zareef Ahmed
e: [PHP] Someone please help me with this PHP script. Thank you very much. My dad is in college, but I have been teaching myself HTML, Java, VB6, and PHP. I've been learning to do graphical artwork with Adobe Illustrator, and Photoshop. I actually started programming before my dad was in

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Erik Johnson
y page one no matter what $page equals. On 12/18/05, Zareef Ahmed <[EMAIL PROTECTED]> wrote: > > > - Original Message - > From: "M. Sokolewicz" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Cc: "PHP LIST" > Sent: Sunday, Decemb

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Zareef Ahmed
- Original Message - From: "M. Sokolewicz" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Cc: "PHP LIST" Sent: Sunday, December 18, 2005 4:34 AM Subject: Re: [PHP] Someone please help me with this PHP script. > Aside from the 20 suggestions you&

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Erik Johnson
I still can't seem to get it to work. If you want to see my phpinfo(), then go to http://lom.game-host.org/uploads/erik/info.php . I'll keep trying, and hope for the best! It may be my php.ini file, but I have no clue.

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Erik Johnson
Thank you very much. My dad is in college, but I have been teaching myself HTML, Java, VB6, and PHP. I've been learning to do graphical artwork with Adobe Illustrator, and Photoshop. I actually started programming before my dad was in school, and I got him started I guess! Anyway; I've learnt a

RE: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Oli Howson
en set, false if not :) hth -Original Message- From: Erik Johnson [mailto:[EMAIL PROTECTED] Sent: 18 December 2005 15:42 To: php-general@lists.php.net Subject: Re: [PHP] Someone please help me with this PHP script. I was wondering.. how exactly does the isset function work? I saw that R

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Zareef Ahmed
- Original Message - From: "Erik Johnson" <[EMAIL PROTECTED]> To: Sent: Sunday, December 18, 2005 10:41 AM Subject: Re: [PHP] Someone please help me with this PHP script. I was wondering.. how exactly does the isset function work? I saw that Robert Cummings wrote

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Łukasz Hejnak
Zareef Ahmed napisał(a): Hi, Hi what is not working in this code? That's how I see it http://lom.game-host.org/uploads/erik/";; // yes the isset is ok here If(!isset($page)) { $page = "one"; } if($page == "one") { // as far as I know echo is all low case written but maybe it's not a mus

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Erik Johnson
I was wondering.. how exactly does the isset function work? I saw that Robert Cummings wrote: $page = isset( $_GET['page'] ) ? $_GET['page'] : null; What exactly does that mean?

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Erik Johnson
gt; > - Original Message ----- > From: "Erik Johnson" <[EMAIL PROTECTED]> > To: > Sent: Saturday, December 17, 2005 11:05 PM > Subject: [PHP] Someone please help me with this PHP script. > > > I do not know why this isn't working, but it would be ver

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread Zareef Ahmed
recommendation, it is better to use isset function to check if variable has been set or not. Zareef Ahmed - Original Message - From: "Erik Johnson" <[EMAIL PROTECTED]> To: Sent: Saturday, December 17, 2005 11:05 PM Subject: [PHP] Someone please help me with this PHP sc

Re: [PHP] Someone please help me with this PHP script.

2005-12-18 Thread M. Sokolewicz
Aside from the 20 suggestions you've already got, let me add this one: elseif( ($page != "one") or ($page != "two") or ($page != NULL) ) { Echo "Undefined!page isn't defined correctly!"; } is useless code. Why? $page = null; never happens (you made sure of that further up the page). $page

Re: [PHP] Someone please help me with this PHP script.

2005-12-17 Thread Wolf
What is it doing, or not doing? Try changing the I do not know why this isn't working, but it would be very helpful if > someone looked over it. > > $defaultpage = "http://lom.game-host.org/uploads/erik/";; > > If($page == NULL) { > $page = "one"; > } > > if($page == "one") { > Echo "

Re: [PHP] Someone please help me with this PHP script.

2005-12-17 Thread Robert Cummings
On Sat, 2005-12-17 at 23:05, Erik Johnson wrote: > I do not know why this isn't working, but it would be very helpful if > someone looked over it. > > $defaultpage = "http://lom.game-host.org/uploads/erik/";; > > If($page == NULL) { > $page = "one"; > } What is this magical $page variable?

[PHP] Someone please help me with this PHP script.

2005-12-17 Thread Erik Johnson
I do not know why this isn't working, but it would be very helpful if someone looked over it. http://lom.game-host.org/uploads/erik/";; If($page == NULL) { $page = "one"; } if($page == "one") { Echo "Page OneIt works!!Nice..."; } elseif($page == "two") { Echo "Page TwoThis is page "