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

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to