OK so this is exactly what put in the updates.php
PHP Code:
<?php
$coupon_date = 'Offer expires last day of October 2013! Limit 1 per Client per year. Not valid with other offers.';
$analytics_code = '<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-20639892-2']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>';
?>
...then edited the above portion of the index.php with this:
PHP Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<?php
include('updates.php');
?>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
...and also edited the portion of the page where I wanted these to be placed:
PHP Code:
<?php echo $analytics_code ?>
and
<?php echo $coupon_date ?>
...then uploaded both updates.php and index.php, yet I still get this error message:
PHP Code:
Parse error: syntax error, unexpected T_STRING in /home/content/08/6277108/html/airconditioningokc/updates.php on line 6
What mistake must I have done?
Bookmarks