What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » PHP Help Wanted (how do I do this: page.php?section=something)

Pages: (2): « First « 1 [ 2 ] Last »
PHP Help Wanted (how do I do this: page.php?section=something)
Author: Message:
rav0
Veteran Member
*****

Avatar
i have an avatar

Posts: 1419
Reputation: 29
34 / Male / Flag
Joined: Aug 2003
O.P. RE: PHP Help Wanted (how do I do this: page.php?section=something)
Just to clear up:

Does the "!" used in some of those make things negative/false?

What does the "." that is used in some of your suggestions do?
quote:
Originally posted by rav0
PHP newbie alert


This post was edited on 06-03-2005 at 11:25 AM by rav0.
| [Image: dorsh] |

(\ /)
(O.o)
(> <)

This is Bunny. Copy Bunny into your signature to help him on his way to world domination
06-03-2005 10:57 AM
Profile E-Mail PM Web Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: PHP Help Wanted (how do I do this: page.php?section=something)
quote:
Originally posted by rav0
Does the "!" used in some of those make things negative/false?
yea it means NOT   so !=  is not equals to

quote:
Originally posted by rav0
What does the "." that us used in some of your suggestions do?
"fish" . "cheese"

would make fishcheese

. appends variables/text together
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
06-03-2005 11:05 AM
Profile E-Mail PM Web Find Quote Report
KeyStorm
Elite Member
*****

Avatar
Inn-sewer-ants-pollie-sea

Posts: 2156
Reputation: 45
38 / Male / –
Joined: Jan 2003
RE: PHP Help Wanted (how do I do this: page.php?section=something)
quote:
Originally posted by rav0
Does the "!" used in some of those make things negative/false?

!$a also makes it false. Ie if $a contains 'true', some text, or a number but 0 it will become 'false'.

It's always good to make $a = NULL at the beginning to quickly ensure the _REQUEST values don't get mixed with your $a in some configs.
06-03-2005 11:21 AM
Profile E-Mail PM Web Find Quote Report
rav0
Veteran Member
*****

Avatar
i have an avatar

Posts: 1419
Reputation: 29
34 / Male / Flag
Joined: Aug 2003
O.P. RE: PHP Help Wanted (how do I do this: page.php?section=something)
So is this PHP:

code:
echo 'some text'.$variable

the same as this JavaScript:

code:
document.writeln ('some text' + variable)
| [Image: dorsh] |

(\ /)
(O.o)
(> <)

This is Bunny. Copy Bunny into your signature to help him on his way to world domination
06-03-2005 11:23 AM
Profile E-Mail PM Web Find Quote Report
Dempsey
Scripting Contest Winner
*****

Avatar
http://AdamDempsey.net

Posts: 2395
Reputation: 53
37 / Male / Flag
Joined: Jul 2003
RE: RE: PHP Help Wanted (how do I do this: page.php?section=something)
quote:
Originally posted by rav0
So is this PHP:

code:
echo 'some text'.$variable

the same as this JavaScript:

code:
document.writeln ('some text' + variable)

yea except you need a semi colon at the end of the php

code:
echo 'some text'.$variable;
SoundPacks   -   Scripts   -   Skins

that's not a bug, thats an unexpected feature
06-03-2005 11:25 AM
Profile E-Mail PM Web Find Quote Report
rav0
Veteran Member
*****

Avatar
i have an avatar

Posts: 1419
Reputation: 29
34 / Male / Flag
Joined: Aug 2003
O.P. RE: RE: RE: PHP Help Wanted (how do I do this: page.php?section=something)
quote:
Originally posted by Dempsey
yea except you need a semi colon at the end of the php

Hmmm ... I always forget those :$. There should be one at the end of the JavaScript as well.
| [Image: dorsh] |

(\ /)
(O.o)
(> <)

This is Bunny. Copy Bunny into your signature to help him on his way to world domination
06-03-2005 11:26 AM
Profile E-Mail PM Web Find Quote Report
KeyStorm
Elite Member
*****

Avatar
Inn-sewer-ants-pollie-sea

Posts: 2156
Reputation: 45
38 / Male / –
Joined: Jan 2003
RE: PHP Help Wanted (how do I do this: page.php?section=something)
And except javascript runs on the browser, leaving all the execution in hands of the viewer and PHP runs on the server, hidden to all.

But the effect might be the same, yeah.

This post was edited on 06-03-2005 at 11:33 AM by KeyStorm.
06-03-2005 11:33 AM
Profile E-Mail PM Web Find Quote Report
Pages: (2): « First « 1 [ 2 ] Last »
« Next Oldest Return to Top Next Newest »


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On