Help with syntax
Posted: Mon Feb 19, 2007 5:36 pm
feyd | Please use
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I've the following codes, all I wanted to do is to execute the HTML code when $an_mess not blank, but somehow I keep getting error messages. Could someone tells me why? Thanks...Code: Select all
<?php
$mess = "this is a test";
if ($mess != "")
{ ?>
<html>
<p >
<? echo $an_mess; ?>
</p>
</body>
</html>
<? If ($mess != "") {echo "}"; } ?>feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]