Jump to content

Little Question


porko2004

Recommended Posts

I think this is what your looking for...

 

<?php		
	if ($News_1_Status=="Y"){
	?>//removed echo and added this.
                         <div class="newstitle" align="left"><?php echo $News_1_Date;?>  <a href="<?php echo $News_1_URL;?>"><?php echo $News_1_Name;?></a></div><br>; 
                <?php
	}else
	         echo "Have a nice day!";
?>

Link to comment
https://forums.phpfreaks.com/topic/246077-little-question/#findComment-1263774
Share on other sites

http://w3schools.com/php/default.asp

 

I dont think there is anything wrong with that code. I would make sure your knowledge of basic php is up to snuff. If that is not runnign right you might have to post more of the code so i can see what else is going on that could be screwing it up.

Link to comment
https://forums.phpfreaks.com/topic/246077-little-question/#findComment-1263778
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.