Jump to content

Recommended Posts

sorry i was trying to say

 

error is here

 

<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>

 

this doesnt appear its between " "

 

Have a nice day! works fine but.

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

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.