joemorris86 Posted August 18, 2011 Share Posted August 18, 2011 I have cobbled this together to echo my message only if the current_mp is on or lower than 499, and only if the user has come from a specific page.im getting the following error with the below code, can anyone see what I have done wrong?Parse error: syntax error, unexpected ':' in /var/www/html/testdir/cloud/walktest.php on line 292 <?phpif (($current_mp <= 499) && ($_SERVER['HTTP_REFERER'] == http://testsite.com/file.php)) { echo '<div class="header_pos">Not enough Magic Points<br /><br /></div>';}?> Link to comment Share on other sites More sharing options...
ShadowMage Posted August 18, 2011 Share Posted August 18, 2011 Put quotes around the URL:if (($current_mp <= 499) && ($_SERVER['HTTP_REFERER'] == "http://testsite.com/file.php")) { Link to comment Share on other sites More sharing options...
joemorris86 Posted August 18, 2011 Author Share Posted August 18, 2011 awesome, thanks Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.