Re: [PHP] Newbie Variable Question

2005-03-09 Thread Jochem Maas
Jackson Linux wrote: Hi, All, A php variable question. I've done this to take the requested category from the URL (www.foo.com/file.htm?r=1) and use it to build the page: if the category number is really always supposed to be an integer (and that it must always be greater than 0, actually in 're

[PHP] Newbie Variable Question

2005-03-09 Thread Jackson Linux
Hi, All, A php variable question. I've done this to take the requested category from the URL (www.foo.com/file.htm?r=1) and use it to build the page: if (isset($_GET['r']) && !empty($_GET['r'])) { $r = "'{$_GET['r']}'"; //Set the variable $r to mean the category number $fields = '*'; } else { $w