
July 8th, 2003
02:50 AM
Neversidian
Status: Offline!
Heh it's alright
btw &= is a valid operator. You use it to replace:
$a = $a & $b;
with $a &= $b;
=& isnt an operator, it's just a = followed by a &, you can write
$a = &$b;
and it will do the same thing
___________________
Jeremie - Used to be the Director of Community Development

July 8th, 2003
06:53 AM
I Liked the tutorial
Got some questions - Let's say i use <a href='bla.bla?bla=blat'> , the item would belong to the get array ?
Can i refer to him as a $_GET['bla'] ? cause i used this only for values submited by froms until now ...
2nd question isn't really about tutorial, just wanted to ask what this line means :
$id = ( isset( $_GET['id'] ) ) ? intval( $_GET['id'] ) : 0;
i can understand $id = ( isset( $_GET['id'] ) ) , but what does the "?" mean? and what does the ": 0" means ?
Thanks ! good tut, helped me 
___________________
[glow]Cumbaya Milord Cumbaya[/glow]

July 8th, 2003
12:54 PM
with Mr. Jones
Status: Offline!
I Liked the tutorial
Got some questions - Let's say i use <a href='bla.bla?bla=blat'> , the item would belong to the get array ?
Can i refer to him as a $_GET['bla'] ? cause i used this only for values submited by froms until now ...
heres a link to my tut on superglobals and variable scope and stuff - it answers your problem. It covers a wider scope of things then EvilGen's but his goes into more detail, but mine gets the basic point accross.
http://tutorialforums.com/showthread.php?s=&threadid=48722&highlight=$_GET
___________________
http://www.philbrodeur.com - Expert PHP Development and Tutorials

July 8th, 2003
11:14 PM
Neversidian
Status: Offline!
and about the $id = ( isset( $_GET['id'] ) ) ? intval( $_GET['id'] ) : 0;
it's only an if-else statement, it's the same as :
if( isset( $_GET['id'] ) )
{
$id = intval( $_GET['id'];
}
else
{
$id = 0;
}
it's way shorter 
___________________
Jeremie - Used to be the Director of Community Development

July 9th, 2003
01:25 AM
I'm a Neverside Newbie?
Status: Offline!
Originally posted by EvilGenius
Heh it's alright
btw &= is a valid operator. You use it to replace:
$a = $a & $b;
with $a &= $b;
=& isnt an operator, it's just a = followed by a &, you can write
$a = &$b;
and it will do the same thing
Yes, I know. I used to be a pro at PHP.

July 9th, 2003
04:56 AM
Neversidian
Status: Offline!
PHP is like bike, you dont forget it 
___________________
Jeremie - Used to be the Director of Community Development