Getting a Parse error and can't figure it Out - Help!!

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Lindz
Forum Newbie
Posts: 1
Joined: Sun Mar 11, 2007 11:20 pm

Getting a Parse error and can't figure it Out - Help!!

Post by Lindz »

feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]


Hi

My website is http://www.gotdatabases.com and when I go to my site I am getting this error:

Parse error: syntax error, unexpected T_STRING in /home2/gotdata/public_html/includes/languages/english.php on line 19

and here is the code: my error is on line 19 (shown in red below).. I also re loaded the original file and am still gettin this error now? - I can't for the life of me see where the code problem is??? help!

Code: Select all

// Showcase vs Store
if (STORE_STATUS == '0') {
define('TEXT_GREETING_GUEST', 'Welcome <span class="greetUser">Guest!</span> Would you like to <a href="%s">log yourself in</a>?');
} else {
define('TEXT_GREETING_GUEST', 'Welcome, please enjoy our online showcase.');
}
define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?'); // <--

define('TEXT_INFORMATION', 'Define your main Index page copy here.');
//moved to english
Cheers,
Lindz


feyd | Please use

Code: Select all

,

Code: Select all

and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read:  [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
User avatar
dude81
Forum Regular
Posts: 509
Joined: Mon Aug 29, 2005 6:26 am
Location: Pearls City

Post by dude81 »

Code: Select all

define('TEXT_GREETING_PERSONAL', 'Hello <span class="greetUser">%s</span>! Would you like to see our <a href="%s">newest additions</a>?');
why is '?' there?
Try this

Code: Select all

define("TEXT_GREETING_PERSONAL", "Hello <span class='greetUser'>%s</span>! Would you like to see our <a href='%s'>newest additions</a>?");
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

There's no syntax error in the code snippet you have posted. The cause of the error can be in any of the first 19 lines.
Post Reply