New Question: I need help finishing this-
I am trying to make a delete command:
form to delete:
delete code:
I think the change needs to be in the line that is red.
I am trying to make a delete command:
form to delete:
Code:
<?
include("./config.php");
?>
<html>
<form method="post" action="deleteplatform.php">
<h3>Delete Platform:</h3>
<select name="developer">
<?php echo $company; ?>
</select>
<br>
<br>
<INPUT TYPE="submit" name="submit" value="submit">
</form>
</html>
delete code:
Code:
<?
if($_POST['submit'])
{
include("./config.php");
[COLOR=Red] $platform = mysql_real_escape_string($_POST['platname']);[/COLOR]
$result=MYSQL_QUERY("DELETE FROM platform (platname)".
"VALUES ('$platform')");
echo "Query Finished";
}
?>
I think the change needs to be in the line that is red.
Last edited:




