Re: FN-FORUM: PHP if null show this instead of that +
date posted 24th August 2007 13:54
PuntersPower wrote:
> thanks to you guys I have this up and running, just one more thing which
> is frustrating I have changed the icon to call the id of the record
> selected form the table and pass it through to the next page
>
> --------------------------
> if ( $myrow[19] == NULL ) {
> // value in field = null
> // so show icon
> print 'Update';
> }
>
> -----------------------
>
> However the $myrow[7] isn't playing ball! I am guessing I need to put
> this in something like [] or "" to get it to acutally work?
>
> Andrew
>
>
The code doesn't say "$myrow[7]" though, it says "$myrow7]"
Is that the problem?
--
Artumi Systems, 58 Salmon Street, Sheffield, S11 8DD.
Tel 0114 250 7654, Web http://www.artumi.com
VAT Reg 889 0317 88