On 09 Dec 2004 19:12:20 GMT, Daniel Tryba <spam@tryba.invalid> wrote:
[color=blue]
>Gary L. Burnore <gburnore@databasix.com> wrote:[color=green]
>> It'd still be a bit better to do this:
>>
>> $pid = $_GET['pid'];
>>
>> switch ($pid) {
>> case 'sqlall':
>>
>> ...
>>[/color]
>
>Huh! Why?[/color]
Moving the $_GET stuff in to their own variables is a good habit to
get into for more than one reason. One is less typing on re-use.
It's easier to type $pid more than once rather than typing
$_GET['pid'] more than once for example.
--
gburnore@databasix dot com
---------------------------------------------------------------------------
How you look depends on where you go.
---------------------------------------------------------------------------
Gary L. Burnore | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
DataBasix | ÝÛ³ºÝ³Þ³ºÝ³³Ýۺݳ޳ºÝ³Ý³Þ³ºÝ³ÝÝÛ³
| ÝÛ³ 3 4 1 4 2 ݳ޳ 6 9 0 6 9 ÝÛ³
Black Helicopter Repair Svcs Division | Official Proof of Purchase
================================================== =========================
Want one? GET one!
http://signup.databasix.com
================================================== =========================