|
|
 |
RE: FN-FORUM: PHP if null show this instead of that +
date posted 24th August 2007 13:52
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 ' href="http://confirm_details.php?details=$myrow7]">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?
$myrow7] should be $myrow[7] but that may be a cut and paste issue?
The print is using single quotes and as such there is no variable
substitution, try
print 'Update';
Regards,
Dai
|
 |
|