I get a Parse error: parse error in /home/twistedo/public_html/cartwillowlamp.php on line 17
when I try to run this script.
line 17 is }else{
any help would be greatly appreciated.
$dbh = mysql_connect($hostname, $username, $password) or die("Unable to connect to MySQL");
$selected = mysql_select_db("twistedo_products",$dbh) or die("Could not select database");
$result = mysql_query("SELECT item_inventory FROM tblproducts WHERE ID = 1");
while($row = mysql_fetch_array($result)){
$new = $row{"item_inventory"};
if($new == "1");{
include ("form.php");
}else{
print "SOLD OUT";}}