[SOLVED] cant find the parse error.
Posted: Tue Dec 09, 2003 10:50 am
hello folks,
I seem to have a parse error somewhere but can't find it:
heres the error I'm getting:
Parse error: parse error, expecting `','' or `';'' in /home/ectaviat/public_html/aircraftsales/actype_del.php on line 22
?>
I seem to have a parse error somewhere but can't find it:
Code: Select all
<?php
//connect to the database
include ('connect.php');
$typeID = $_GET['typeID'];
$typelist = mysql_query("SELECT ID, type, FROM ac_type WHERE ID='$typeID'");
$actype = mysql_fetch_array($typelist);
$typeID = $actype['ID'];
$type = $actype['type'];
?>
Please delete new chapter:
<form name="deleteactype" method="post" action="<?=$_SERVER['PHP_SELF']>">
<input type="text" name="type" value="<?=$type?>" size="50" maxlength="100"> <!-- line 22 here -->
<input type="hidden" name="typeID" value="<?=$typeID?>">
<p>
<input type="submit" value="submit" name="delete_actype">
</form>
<?php
if (isset($_POST['delete_actype'])) {
$typeID = $_POST['typeID'];
$ok1 = @mysql_query("DELETE FROM ac_description WHERE actype_ID='$typeID'");
$ok2 = @mysql_query("DELETE FROM ac_type WHERE ID='$typeID'");
if($ok1 and $ok2) {
echo('Your aircraft type has been deleted');
}
else {
echo('error deleting aircraft' . mysql_error());
}
}
?>Parse error: parse error, expecting `','' or `';'' in /home/ectaviat/public_html/aircraftsales/actype_del.php on line 22
?>