I am pulling my hair out, have deleted the cookie and it still updates the site, have changed the table name because it was called data, thought that maybe a problem but it still did it. Removed the script off the server and it stopped doing it...
Must be the script!!!
I cannot see anything wrong with it.
can you help please:
<?php
if (!($connection = mysql_connect(localhost, ***, )))
die("could not connect");
if (!(mysql_select_db(**, $connection)))
showerror();
$result = mysql_query ("SELECT * from house where feature='Yes' ORDER BY RAND() limit 1");
$row = mysql_fetch_array($result);
$photo = $row["photo1"];
$house = $row["id"];
$date = date("Y-m-d");
mysql_query("INSERT INTO data(id, view, property, viewer, td) VALUES ('null','3','$house','$username','$date')");
echo "<table width=150 cellpadding=1 cellspacing=0 border=1 bordercolor=#000000>
<tr>
<td width=150 bgcolor=#99b7cc height=140 valign=top>
<table width=150 cellpadding=0 cellspacing=0 border=0>
<tr>
<td width=150 bgcolor=#c00000 height=16 align=center valign=top>
<font size=3 color=#ffffff face=arial black>
<b>
Featured House
</b>
</font>
</td>
</tr>
</table>
<br>
<center>
<img src=uploads\" . $row["photo1"] . " width=\"100\" height=\"75\" border=\"1\" bordercolor=#000000>";
echo "<br><br><b>£" . $row["price"] . "</b><br><br>" . $row["town"] . "<br>" . $row["count"] . "<br><br> <a class=more href=show_property.php?house=" . $row["id"] . ">More info>></a><br><br>
<a href=add_featured_house.php class=more>My house here</a></center></td></tr></table>";
mysql_close($connection);
?>
Dont normally close the connection but added it in case it was the problem.
Spoke to hosting company and they said it was definately not a server problem?