Jump to content

Little Question


porko2004

Recommended Posts

I feel like some } and { would help

 

Not necessary if there's only one statement in a clause, as is the case here.

 

He did forget to quote his output in the first clause.

 

That said there's no telling exactly what he wants solved as his question sucked.

Link to comment
Share on other sites

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