HTML Tutorial


 Forum HomeForum Home   FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
RegisterRegister - Not registered yet? Got something to say? Join HTML Code Tutorial!
Outputting a string using "echo"
Post new topic   Reply to topic    HTML Help Forum Index -> PHP
View previous topic :: View next topic  
Author Message
mcd87



Joined: 20 Apr 2008
Posts: 5

PostPosted: Mon Apr 21, 2008 5:06 am     Outputting a string using "echo" Reply with quote

I have this code:

Code:
<?

if ($articles[$a]["1"])
echo "This is a test page";

elseif
($articles[$a]["2"])
echo "This is test page 2";

?>


It does not come up with any errors but it is not displaying the contents i put within "echo".
What am I doign wrong???

I would appreciate any recommendations.
Thank you in advance.
_ap



Joined: 24 Apr 2008
Posts: 1

PostPosted: Thu Apr 24, 2008 8:24 pm     Reply with quote

just put the variables in the echo("$var")
try doble quotes when variables inside.
Display posts from previous:   
Post new topic   Reply to topic    HTML Help Forum Index -> PHP All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
HTML Help Archive
Powered by phpBB © 2001, 2005 phpBB Group
HTML Help topic RSS feed 

 
HOSTING / DESIGN
MAKE MONEY

Home
  |   Tutorials   |   Forum   |   Quick List   |   Webmaster Directory   |   About
Copyright ©1997-2002 Idocs and ©2002-2007 HTML Code Tutorial