[Gllug] mySQL PHP

Bruce Richardson brichardson at lineone.net
Wed Jul 11 17:11:42 UTC 2001


On 7/11/01, 3:01:44 PM, Dave Cridland <dave at cridland.net> wrote 
regarding Re: [Gllug] mySQL PHP:


> >     If ($var) { $var = $var_default }
> >
> > is correct.

> Well, if you want to be pedantic, then:
>  - $var is assumed to be coming from a form variable, or similar.
>  - Your rewritten test does exactly the opposite of your original 
code.

Oops, missing !

I was merely pointing out that your code was not doing the same thing, 
as your message implied.  I outlined a better way of checking to see 
if the form had been posted in a separate message.

-- 

Bruce




-- 
Gllug mailing list  -  Gllug at linux.co.uk
http://list.ftech.net/mailman/listinfo/gllug




More information about the GLLUG mailing list