I sorted that out, I accidently opened the php page in frontpage, and it messed up the code - briliant.
When nothing is found in the sql database, could you set a defult value?!? Instead of recieving them horrible error thingies!!!
Code:
$username="xxxx";
$password="xxxx";
$database="xxxx";
mysql_connect(localhost,$username,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="SELECT * FROM $table WHERE handset='$hsnew'";
$result=mysql_query($query);
mysql_query($query);
$handset=mysql_result($result,$i,"handset");
$make=mysql_result($result,$i,"make");
$id=mysql_result($result,$i,"id");
$desc=mysql_result($result,$i,"description");
$handsetclean = strtolower($handset);
$makeclean = strtolower($make);
$makeclean = str_replace(" ", "-", $makeclean);
$url = str_replace(" ", "-", $handsetclean);
mysql_close();
Bookmarks