Its saying I got an error on line 30 but its is just a simple else statement? Its on the else statement where i get the error. Anybody got any imput, heres the whole script (i put in fake name pass on mysql_connect so its not that) I get parse error on line 30 it says:
<html>
<body>
<?php
$part = "USE PART";
$db = mysql_connect ("localhost", "root", "root");
mysql_select_db("test",$db);
if ($id == "")
{$id = '%';}
if ($name == "")
{$name = '%';}
$result = mysql_query ("SELECT * FROM ticket_fields
WHERE id LIKE '$id%'
AND name LIKE '$name%'
",$db);
$cnt = 0;
while($row= mysql_fetch_array($result)){
$cnt++;
if (strchr ('#', $row["name"]) && list ($oldnumber, $newnumber) = split ('[#]', $row["name"]));{
print "Check out our new part here, the part number is $newnumber";
}
else {
print $row["id"];
print (" ");
print $row["name"];
print (" ");
print $row["value"];
print (" ");
print $row["dorder"];
print ("<p>");
}
}
if (!$cnt) echo 'No records found';
?>
</body>
</html>