Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Parse error: syntax error, unexpected T_STRING
Old 01-21-2009, 09:31 PM Parse error: syntax error, unexpected T_STRING
Junior Talker

Posts: 1
Trades: 0
Hallo!

I am wondering if someone can give me a leg up on this error message I am getting when I run this script:

Parse error: syntax error, unexpected T_STRING in /home/shecard2/public_html/greetings/resource/richedit/show_it.php on line 56

Here are lines 56 and 57 of the code:

PHP Code:
$folder .="<td STYLE="cursor:hand;cursorpointer" onClick="location.href='$script_url?what=$what&step=2&page=1&cat=$get_item';" onMouseover="this.style.backgroundColor='#C6D3EF';this.style.border='1px solid #3169C6'" onMouseout="this.style.backgroundColor=''this.style.border=''" align="center" height="27" >n"
PHP Code:
[color=#222222]$folder .="<font face=Verdana size=1>Category: <b>$get_item2</b></font><br><img align=absmiddle src=$folder_url/$get_item/$random_img_cat></td>n";[/color] 

I didn't write this script, and the fellah that did is rather hapless when responding to help requests, so I am wondering if this is something simple that I can correct on my own.

Any help at all would be sincerely appreciated.

Thanks!
batjen is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 01-21-2009, 09:48 PM Re: Parse error: syntax error, unexpected T_STRING
NullPointer's Avatar
Will Code for Food

Posts: 2,787
Name: Matt
Location: Irvine, CA
Trades: 0
PHP Code:
$folder .='<td STYLE="cursor:hand;cursor: pointer" onClick="location.href=\'$script_url?what=$what&step=2&page=1&cat=$get_item\';" onMouseover="this.style.backgroundColor=\'#C6D3EF\';this.style.border=\'1px solid #3169C6\'; " onMouseout="this.style.backgroundColor=''; this.style.border=\'\' align="center" height="27" >n'
PHP Code:
$folder .="<font face=Verdana size=1>Category: <b>$get_item2</b></font><br><img align=absmiddle src=\"$folder_url/$get_item/$random_img_cat\"></td>n"
I think that should fix it. Whoever wrote this code made no attempt to escape quotes.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE

Last edited by NullPointer; 01-21-2009 at 09:50 PM..
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Reply     « Reply to Parse error: syntax error, unexpected T_STRING
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.09058 seconds with 12 queries