Re: Little question

From: Date: Thu, 10 May 2001 09:40:59 +0000
Subject: Re: Little question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-52052@lists.php.net to get a copy of this message
This snippet should be used as an example of badly written and presented code. It tries too hard to do a simple job and in the result fails dismally. I suggest Gabrielle, that you try to be a little more careful in your coding and not so smart. I can find no less than four errors that I put down to poorly constructed code rather than poor syntax. As a hint, why are you trying to nest cals to PHP - your "<?" are not properly nested. Had you put them on separate lines and properly indented them, you would have seen that. Why do you have a colon after your if call etc ... On Tue, 08 May 2001 19:56, you wrote: > Hi, Folks... > I have this little snippet of code: > > <? $myOra="MY STRING" > <? if (!(empty($myOra) || $myOra="")){ ?> > <br> > <table width="550" border="0" align="center"> > <tr bgcolor="ffffff"> > <td colspan="3"><font > > size="2""><b>Orario:</b><?print($myOra)?></font></td> > </tr> > </table> > <? } endif ?> > > It should print a little table with the string "MY STRING"... > ... unfortunately, it doesn't. > > Any suggestion???? > > BTW: I run this code on the following configuration: > > PHP Version: 4.0.4pl1 > MySQL API version: 3.23.22-beta > Server API: httpd on a RHLinux 7.1 > > Thanks in advance > > Gabriele Biondo

« previous php.general (#52052) next »