a1amattyj Posted March 5, 2008 Share Posted March 5, 2008 Hello, Why does : <br /> <? $ip12=$_SERVER['REMOTE_ADDR']; if($ip12==91.108.184.251){ echo "Matt doesn't have ads!"; }else{ ?> <center> <script type="text/javascript"><!-- google_ad_client = ".."; /* 120x240, created 2/29/08 */ google_ad_slot = "1657628479"; google_ad_width = 120; google_ad_height = 240; //--> </script> <script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script> </center> <script src="http://www.google-analytics.com/urchin.js" type="text/javascript"> </script> <script type="text/javascript"> _uacct = "U.."; urchinTracker(); </script> <? } ?> Give : Parse error: syntax error, unexpected T_DNUMBER in /home/./public_html/mf_temp/footer.php on line 37 Thanks Link to comment https://forums.phpfreaks.com/topic/94527-whats-wrong-with-this/ Share on other sites More sharing options...
revraz Posted March 5, 2008 Share Posted March 5, 2008 Would probably help if you said what line is 37. Link to comment https://forums.phpfreaks.com/topic/94527-whats-wrong-with-this/#findComment-484011 Share on other sites More sharing options...
cooldude832 Posted March 5, 2008 Share Posted March 5, 2008 its great when you post 29 lines of stuff and the error is on line 37. Are we suppose to guess that flying pigs came and pointed out line 37 to us??? Link to comment https://forums.phpfreaks.com/topic/94527-whats-wrong-with-this/#findComment-484013 Share on other sites More sharing options...
kenrbnsn Posted March 5, 2008 Share Posted March 5, 2008 The IP address in this line <?php if($ip12==91.108.184.251){ ?> needs to be quoted: <?php if($ip12 == '91.108.184.251'){ ?> Ken Link to comment https://forums.phpfreaks.com/topic/94527-whats-wrong-with-this/#findComment-484015 Share on other sites More sharing options...
a1amattyj Posted March 5, 2008 Author Share Posted March 5, 2008 The IP address in this line <?php if($ip12==91.108.184.251){ ?> needs to be quoted: <?php if($ip12 == '91.108.184.251'){ ?> Ken Thanks Ken Link to comment https://forums.phpfreaks.com/topic/94527-whats-wrong-with-this/#findComment-484023 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.