Home »
Imported messages »
comp.lang.php »
PHP Parse error: syntax error, unexpected '$sql' (T_VARIABLE) in
PHP Parse error: syntax error, unexpected '$sql' (T_VARIABLE) in [message #185583] |
Thu, 17 April 2014 01:22 |
Very Grateful
Messages: 1 Registered: April 2014
Karma:
|
Junior Member |
|
|
Hello kind coders. Basic PHP error I think. Any thought on this?
I'm getting this error on a lot of the pages on my site:
Parse error: syntax error, unexpected '$sql' (T_VARIABLE) in
/home/company/public_html/pages/job-postings/index.php on line 7
this is the snippet of code i think the above error message refers to:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?
include_once '../../cms/assets/includes/config.inc';d
$sql = "SELECT * FROM cms_pages WHERE page_name='$PHP_SELF'";
$result = mysql_query($sql);
$page = mysql_fetch_array($result);
?>
<title><? echo $page[page_title]; ?></title>
Thanks for reading and considering
--
|
|
|
Goto Forum:
Current Time: Sun Dec 01 00:23:33 GMT 2024
Total time taken to generate the page: 0.04899 seconds