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
HELP PLEASE!... parse error, unexpected T_CONSTANT_ENCAPSED_STRING
Old 04-16-2005, 01:09 PM HELP PLEASE!... parse error, unexpected T_CONSTANT_ENCAPSED_STRING
Junior Talker

Posts: 4
Trades: 0
I am really new to MYSQL and PHP but I am learning. However, this script is giving me some issues. Here is the error that I am getting...

Parse error: parse error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/sintxcom/public_html/store/admin/config.inc.php on line 2


And here is the code.....

<?php
$databaseserver = "localhost"; // <-- change to your database server
$databasename = "dbname"; // <-- change to your database name
$databaseuser = "dbuser"; // <-- change to the username for your database
$databasepasswd = "password"; // <-- change to the password for your database

$noinactivitycheck = "true"; // <-- change to false to disable admin inactivity check

// Get preferences from the database...
$db = @mysql_connect("$databaseserver", "$databaseuser", "$databasepasswd");
@mysql_select_db("$databasename",$db);
$result = @mysql_query("SELECT * FROM preferences");
if (@mysql_num_rows($result)) while ($row = @mysql_fetch_array($result)) eval("\$".$row["prefname"]." = \"".$row["prefvalue"]."\";");
if (($shop && $shop != "1") || ($userid && $userid != "1")) {
if ($shop && $shop != "1") $memberidnumber = $shop;
else $memberidnumber = $userid;
$result = @mysql_query("SELECT * FROM user WHERE userid='$memberidnumber'");
$row = @mysql_fetch_array($result);
if ($row["shopname"]) $ashopname = $row["shopname"];
if ($row["theme"]) $ashoptheme = $row["theme"];
if ($row["username"]) $ashopuser = $row["username"];
if ($row["bgcolor"]) $bgcolor = $row["bgcolor"];
if ($row["textcolor"]) $textcolor = $row["textcolor"];
if ($row["linkcolor"]) $linkcolor = $row["linkcolor"];
if ($row["formsbgcolor"]) $formsbgcolor = $row["formsbgcolor"];
if ($row["formstextcolor"]) $formstextcolor = $row["formstextcolor"];
if ($row["itembordercolor"]) $itembordercolor = $row["itembordercolor"];
if ($row["itembgcolor"]) $itembgcolor = $row["itembgcolor"];
if ($row["itemtextcolor"]) $itemtextcolor = $row["itemtextcolor"];
if ($row["categorycolor"]) $categorycolor = $row["categorycolor"];
if ($row["categorytextcolor"]) $categorytextcolor = $row["categorytextcolor"];
if ($row["selectedcategory"]) $selectedcategory = $row["selectedcategory"];
if ($row["font"]) $font = $row["font"];
}
@mysql_close($db);

// Fix incompatible php settings...
if (ini_get("register_globals") == 1 || !get_magic_quotes_gpc()) include "$ashoppath/admin/vars.inc.php";
?>

If anyone can help me figure this out that would be great. Major big thanks!!!

Last edited by laroberts; 04-16-2005 at 03:46 PM..
laroberts is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-16-2005, 02:00 PM Anyone?
Junior Talker

Posts: 4
Trades: 0
I really need the help....

Thanks in advance!
laroberts is offline
Reply With Quote
View Public Profile
 
Old 04-16-2005, 02:37 PM
BrandonG's Avatar
Skilled Talker

Posts: 62
Location: Da
Trades: 0
I think one of your lines needs closing. I am not sure though.
__________________

Please login or register to view this content. Registration is FREE
BrandonG is offline
Reply With Quote
View Public Profile
 
Old 04-16-2005, 03:37 PM
Republikin's Avatar
Defies a Status

Posts: 3,189
Trades: 3
What is with all the *'s. Get rid of them outside of comments.
__________________

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
Republikin is offline
Reply With Quote
View Public Profile
 
Old 04-16-2005, 03:47 PM
Junior Talker

Posts: 4
Trades: 0
I am not sure why thoose got in there. It may be because I copied and pasted from Frontpage cause they are not in my script. Only on here. I have them out now. Anybody know why I am getting this error?

Thank you!
laroberts is offline
Reply With Quote
View Public Profile
 
Old 04-16-2005, 09:25 PM
BrandonG's Avatar
Skilled Talker

Posts: 62
Location: Da
Trades: 0
Quote:
Originally Posted by BrandonG
one of your lines needs closing.
You're most likely missing a ' somewhere.
__________________

Please login or register to view this content. Registration is FREE
BrandonG is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to HELP PLEASE!... parse error, unexpected T_CONSTANT_ENCAPSED_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 0.22867 seconds with 12 queries