Hi Guys
I wrote simple PHP script for get value from URL and check similar values from the database.
This is a code
<?php
include('../../datab.php');
if(!empty($_GET['ip']))
{
$ip = $_GET['ip'];
$ipcheck = mysql_query("SELECT * FROM `report` WHERE `ip`='$ip'");
if(mysql_num_rows($ipcheck)> 0)
{
while($row = mysql_fetch_array($ipcheck)){
?>
<body>
<p>Report ID : <?php echo $row['id'] ?></p>
<?php
}
else
{
echo "Nothing Selected";
}
}} ?>
</body>
But Dreamviewer shows there is a error in else
part after the
<p>Report ID : <?php echo $row['id'] ?></p>
<?php
}
lines, (see attachment 01)
Whats wrong with my code?