Jump to content

[SOLVED] Error in if statement???


Recommended Posts

Hello :)

 

I have a problem with coding a link checker.

Code:

<?php

// start script
$url==$_REQUEST[url]
// check if the url is inside the site
if (stristr("towerdefence.net", $url) !=false) {
$check="true";
}
else {
$check="false";
}[...]

 

Error:

Parse error: syntax error, unexpected T_IF in C:\***\link2.php on line 6

Link to comment
https://forums.phpfreaks.com/topic/115909-solved-error-in-if-statement/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.