The right code

4 posts by 2 authors in: Forums > CMS Builder
Last Post: October 9, 2008   (RSS)

Re: [sagentic] The right code

By Dave - October 9, 2008

Hi Kenny,

Try this:

$site = 'www' . $webpanelRecord['domain']';

Let me know if that works for you.
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] The right code

By Kenny - October 9, 2008

That fixed the original error, but now I get:

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/sagentic/public_html/webpanel/site.php on line 134

Line 134

$url = 'http://www.google.ro/search?hl=en&q=site%3A'.$site.'&btnG=Search';

Re: [sagentic] The right code

By Dave - October 9, 2008

Looks like I missed that trailing single quote before the semi-colon. Change this:

$site = 'www' . $webpanelRecord['domain']';

to this:

$site = 'www' . $webpanelRecord['domain'];

Let me know if you get any more errors with that.
Dave Edis - Senior Developer
interactivetools.com