PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Moderator: General Moderators
Perfidus
Forum Contributor
Posts: 114 Joined: Sun Nov 02, 2003 9:54 pm
Post
by Perfidus » Wed Dec 10, 2003 8:25 pm
Will this echo cause any trouble because of the slash and chracters inside ""?
Code: Select all
if ($row['ene1t']!=0) echo{"(3-1-2004/10-1-2004)";}
Sevengraff
Forum Contributor
Posts: 232 Joined: Thu Apr 25, 2002 9:34 pm
Location: California USA
Contact:
Post
by Sevengraff » Wed Dec 10, 2003 8:29 pm
no, but you need to get rid of the { } 's
twigletmac
Her Royal Site Adminness
Posts: 5371 Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK
Post
by twigletmac » Thu Dec 11, 2003 3:17 am
or move them:
Code: Select all
if ($row['ene1t']!=0) {
echo '(3-1-2004/10-1-2004)';
}
Mac