Re: problem: if / == / !=

From: Date: Thu, 30 Nov 2000 02:39:39 +0000
Subject: Re: problem: if / == / !=
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-27935@lists.php.net to get a copy of this message
Bojan Gajic wrote: > > What doesn't work? > > if (($write) && ($sess_usr[name] == $row[name])) > > > > { echo "<td><a > > > > href=\"et.php?&fid=$fid&rid=$row[id]&table=$table&hrefedit=true&write=$write&content=$contentvf > > edit</a></td>"; } > > > > elseif (($write) && ($sess_usr[name] != $row[name])) > > { echo "<td>&nbsp</td>"; } // Well, I reckon the first 'if' should print out a table cell for each case in the loop where $sess_usr[name] == $row[name]. It doesn't. The 'elseif' appears to function however. Should I post a more complete code fragment? Thanks again, Magnus

« previous php.general (#27935) next »