GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 14-Mar-2007, 01:11
LukeH LukeH is offline
New Member
 
Join Date: Mar 2007
Posts: 1
LukeH is on a distinguished road

Another newb, another parse error - please enlighten!


Hi,

I a complete idiot when it comes to PHP as you can see - am teaching myself but is a slow process.
the code below
PHP Code:

/* Html Price*/
  if ($perm->check("admin,storeadmin,shopper")) {
  $html_price = "<a href="javascript:void window.open('http://www.holycow.com.au/SR/media/price/{product_sku}.html\', \'win2\', \'status=no,toolbar=no,scrollbars=yes,titlebar=no,menubar=no,resizable=yes,width=600,height=150,directories=no,location=no\');">');
  }
  else {
    $html_price = "";
  } 



keeps giving me an unexpected t-string parse error - specifically the second line.

I dont even know if it correct to wrap java into php like that. I have tried using CDATA but is even worse. Also not sure if i need to use <script> tag to introduce the java.

The code is to check permissions, then if ok build a link which opens in a popup window.

Please help am starting to pull my hair out!!

Cheers,
Luke
PS can post the whole file if needed
 
 

Recent GIDBlogA Week in Kuwait by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apologies In Advance Parse error: parse error, unexpected T_STRING, expecting T_VARI sph2005 MySQL / PHP Forum 11 17-Jul-2006 09:28
Parse Error vigilantweather MySQL / PHP Forum 3 21-Feb-2006 12:24
Parse Error vigilantweather MySQL / PHP Forum 6 04-Feb-2006 13:15

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 23:58.


vBulletin, Copyright © 2000 - 2008, Jelsoft Enterprises Ltd.