Will this cause some trouble?

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

Post Reply
Perfidus
Forum Contributor
Posts: 114
Joined: Sun Nov 02, 2003 9:54 pm

Will this cause some trouble?

Post by Perfidus »

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)";}
User avatar
Sevengraff
Forum Contributor
Posts: 232
Joined: Thu Apr 25, 2002 9:34 pm
Location: California USA
Contact:

Post by Sevengraff »

no, but you need to get rid of the { }'s
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

or move them:

Code: Select all

if ($row['ene1t']!=0) {
    echo '(3-1-2004/10-1-2004)';
}
Mac
Post Reply