...

View Full Version : Parse Error



Antec
08-03-2008, 01:07 AM
I am getting the following error:

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /homepages/41/d245653625/htdocs/gaming/register.php on line 56

Line 56:
<td width='60%' valign='center' align='center' background='$config[cellbg]'><input type='text' name='".$member['name']."' value='$member['name']' class='input' size='40' maxlength='15'></td>

Any Ideas?

_Aerospace_Eng_
08-03-2008, 01:12 AM
Can you post the rest of your code please?

Antec
08-03-2008, 01:16 AM
This is one issues in a whole bunch of them...my whole code is attached...I am also having an issue in getting the form info to save into the database when im not getting parse errors.

masterofollies
08-03-2008, 02:30 AM
Hmm I don't have time to review all the code. I thought maybe changing


background='$config[cellbg]'>

to double quotes


background="$config[cellbg]">

Antec
08-03-2008, 02:46 AM
That wouldn't be causing the error because line 55 has the same:
<td width='40&#37;' valign='center' align='left' background='$config[cellbg]'>*Username</td> and it doesn't generate errors

mlseim
08-03-2008, 03:00 AM
I'm suspicious about places where you're doing this
name='".$member['name']."'

Sometimes you do the string append (with the period),
other times you don't. Eliminate all of those and see
what happens.

Antec
08-03-2008, 03:11 AM
ok, I removed the periods and now I am receiving this error:

Parse error: syntax error, unexpected T_VARIABLE in /homepages/41/d245653625/htdocs/gaming/register.php on line 56

masterofollies
08-03-2008, 10:22 PM
How about one of these.


background='$config['cellbg']'>

or


background='".$config['cellbg']."'>

I have a feeling one of those will work if you try them both.

mlseim
08-04-2008, 02:13 AM
This is one of those deals where the original poster won't give us a real link.
If we could see what he's been doing ... what's actually on the webpage ...
that would sure help.

masterofollies
08-04-2008, 03:37 AM
This is one of deals where the original poster won't give us a real link.
If we could see what he's been doing ... what's actually on the webpage ...
that would sure help.

Yeah it would because right now we're blind guessing on things. I can only find corrections on that part which is problem not the problem at all.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum