parse error

Thread Solved

Join Date: Oct 2006
Posts: 164
Reputation: Barefootsanders is an unknown quantity at this point 
Solved Threads: 3
Barefootsanders Barefootsanders is offline Offline
Junior Poster

parse error

 
0
  #1
Jan 9th, 2007
Hey everyone. I want to change the following:

  1. if ($pageNav->limit < $pageNav->total)
  2. puarcade_html::WritePagination($url,$pageNav);
  3. echo "<center><br><br><a href=".$livesite."/index.php?option=".$option."&Itemid=".$Itemid.">&lt;&lt;&nbsp;Choose Another Game</a></center>";
to this:

  1. if ($pageNav->limit < $pageNav->total)
  2. puarcade_html::WritePagination($url,$pageNav);
  3. echo "<center><br><br><a href="http://novatrader.net/index.php?option=com_puarcade&Itemid=51">&lt;&lt;&nbsp;Choose Another Game</a></center>";
But everytime I get this error:
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /home/content/s/o/l/username/html/components/com_puarcade/puarcade.html.php on line 125

Any help would be apprecaited. Thanks!
Reply With Quote Quick reply to this message  
Join Date: Sep 2006
Posts: 13
Reputation: pzuurveen is an unknown quantity at this point 
Solved Threads: 1
pzuurveen pzuurveen is offline Offline
Newbie Poster

Re: parse error

 
0
  #2
Jan 10th, 2007
You used " in a string . This is't
nessarray. Just remove them

[php]echo "<center><br><br><a href=http://novatrader.net/index.php?option=com_puarcade&Itemid=51>&lt;&lt;&nbsp;Choose Another Game</a></center>";[/php]
Reply With Quote Quick reply to this message  
Join Date: Oct 2006
Posts: 164
Reputation: Barefootsanders is an unknown quantity at this point 
Solved Threads: 3
Barefootsanders Barefootsanders is offline Offline
Junior Poster

Re: parse error

 
0
  #3
Jan 10th, 2007
OO wow. That was simple. Thanks a lot!
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 138
Reputation: php_daemon is an unknown quantity at this point 
Solved Threads: 2
php_daemon php_daemon is offline Offline
Junior Poster

Re: parse error

 
0
  #4
Jan 10th, 2007
Actually if you're trying to follow xhtml, the quotes are necessary. Escape them instead of removing:
[php]
echo "<center><br><br><a href=\"http://novatrader.net/index.php?option=com_puarcade&Itemid=51\">&lt;&lt;&nbsp;Choose Another Game</a></center>";
[/php]
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC