Parse Error

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
winsonlee
Forum Commoner
Posts: 76
Joined: Thu Dec 11, 2003 8:49 pm

Parse Error

Post by winsonlee »

When I tried executing the the following it comes out an errror msg stating,
"Parse error: parse error in /home/techhost/public_html/mwhois/mwhois.php on line 288"

$f = str_replace("[>EXT_HTML_LISTX<]","<select name=\"ext\">\n<option>".implode("\n<option>",$whois_exts)."\n<option selected>."$vars["ext"]".</select>",$f);

but i dont see the problem when i change the $vars["ext"] to hello.

$f = str_replace("[>EXT_HTML_LISTX<]","<select name=\"ext\">\n<option>".implode("\n<option>",$whois_exts)."\n<option selected>hello</select>",$f);


How can i resolved this problem ???
microthick
Forum Regular
Posts: 543
Joined: Wed Sep 24, 2003 2:15 pm
Location: Vancouver, BC

Post by microthick »

>."$vars["ext"]".</

Your . and " are reversed.
Post Reply