![]() |
|
#1
|
|||
|
|||
Unexpected T_ENCAPSED_AND_WHITESPACEHi, I have just built a web store using oscommerce, everything was good until I wanted to install a new feature for my products (tabs).
I have installed it and it seems to be working on my website, but I keep getting an error when I try to go into an area to add my products. The error i get is: Parse error: parse error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in html/catalog/admin/categories.php on line 516 this the php files from line 500 to 530: PHP Code:
if someone could please run through the code and see if they can find the error and tell me how to change it to fix it, that will be great! It is getting very annoying, I cant figure it out....so plz help thanks |
|||
|
#2
|
||||
|
||||
Re: can someone plz help fix error in php?!?!? plzzzLook at the syntax highlighting in the post.
It appears that the string "gets lost" at the statement inside the while-loop, after this point: PHP Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#3
|
|||
|
|||
Re: can someone plz help fix error in php?!?!? plzzzThanks for your reply TurboPT, I am not too great with php, any ideas of how I can fix it? ....any1?
thanks Quote:
|
|
#4
|
||||
|
||||
Re: can someone plz help fix error in php?!?!? plzzzhint: What's missing with the concatenation, just after that point?
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#5
|
|||
|
|||
Re: can someone plz help fix error in php?!?!? plzzzLOL! ok I think I fixed it... I added '" . at the end of:
tep_db_input($description['products_description']) . "', but now I get another error: Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in html/catalog/admin/categories.php on line 515 come on give give me a hint for this one |
|
#6
|
||||
|
||||
Re: Unexpected T_ENCAPSED_AND_WHITESPACEPost the updated code, and let's see what the syntax tells us.
That seems like the same area, and it may be complaining about the extra single quote characters after this: PHP Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#7
|
|||
|
|||
Re: Unexpected T_ENCAPSED_AND_WHITESPACEheres the code after first change (line from 500 to 529):
PHP Code:
Quote:
|
|
#8
|
||||
|
||||
Re: Unexpected T_ENCAPSED_AND_WHITESPACEWhat's wrong with this picture?
PHP Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#9
|
|||
|
|||
Re: Unexpected T_ENCAPSED_AND_WHITESPACEOk got that, added [ in front of 'products_description'])..... getting another error now
PHP Code:
and here is the code, lines between 1378 to 1423: PHP Code:
EDIT: Fixed above error by adding ]))); after: [PHP($products_description[$languages[$i][/php] |
|
#10
|
|||
|
|||
unexpected '[' in html/catalog/admin/categories.php on line 1401cant fix this one now:
PHP Code:
same, line from 1378 to 1423: PHP Code:
|
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HTML Form to PHP File - Help Requested | vigilantweather | MySQL / PHP Forum | 15 | 07-Aug-2006 20:22 |
| PHP - sizes and generation times | cable_guy_67 | MySQL / PHP Forum | 3 | 29-Sep-2005 09:26 |
| Help ! I need help starting up on Php ! | onauc | MySQL / PHP Forum | 11 | 05-Jan-2005 00:57 |
| PHP in HTML | jrobbio | Web Design Forum | 4 | 24-Jul-2003 07:05 |
| All the big PHP script collections that matter | jrobbio | MySQL / PHP Forum | 5 | 06-Jun-2003 17:14 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The