heey iedereen,
ben ik weer.
nu wil ik een heel product verwijderen als ik het id van het product(web_id) via een $_POST verstuur.
dus niet alleen het web_id verwijderen maar ook: web_product, web_text, web_price en web_picture van 1product dus niet alle producten.
hoop dat iemand kan helpen. eventueel tegen een vergoeding
ben ik weer.
nu wil ik een heel product verwijderen als ik het id van het product(web_id) via een $_POST verstuur.
dus niet alleen het web_id verwijderen maar ook: web_product, web_text, web_price en web_picture van 1product dus niet alle producten.
hoop dat iemand kan helpen. eventueel tegen een vergoeding

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<title>Formuliertje</title>
</head>
<body>
<form action="" method="post">
<input name="web_id" type="text"></p>
<p><input name="Submit" type="submit" value="verwijder"></p>
</form>
</body>
</html>
[COLOR= #0000BB]<?php
$dbhost[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]localhost[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$dbuser[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]*****[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$dbpass[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]*****[/COLOR][COLOR= #007700];[/COLOR]
[COLOR= #0000BB]$conn[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_connect"]mysql_connect[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$dbhost[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$dbuser[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$dbpass[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR] [COLOR= #0000BB]$conn[/COLOR] [COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Could not connect: [/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
}[/COLOR]
[COLOR= #0000BB]$sql[/COLOR] [COLOR= #007700]=[/COLOR] [COLOR= #DD0000]DELETE FROM products
WHERE web_id= [/COLOR] [COLOR= #007700].[/COLOR] htmlspecialchars[COLOR= #007700]([/COLOR][COLOR= #0000BB]$row[/COLOR][COLOR= #007700][[/COLOR][COLOR= #DD0000]web_id[/COLOR][COLOR= #007700]]) .[/COLOR] [COLOR= #DD0000][/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/mysql_select_db"]mysql_select_db[/URL][COLOR= #007700](*****);[/COLOR]
[COLOR= #0000BB]$retval[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/mysql_query"]mysql_query[/URL][COLOR= #007700]([/COLOR] [COLOR= #0000BB]$sql[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #0000BB]$conn[/COLOR] [COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/if"]if[/URL][COLOR= #007700](![/COLOR] [COLOR= #0000BB]$retval[/COLOR] [COLOR= #007700])
{[/COLOR]
[URL="http://www.php.net/die"]die[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]Could not delete data: [/COLOR] [COLOR= #007700].[/COLOR] [URL="http://www.php.net/mysql_error"]mysql_error[/URL][COLOR= #007700]());
}[/COLOR]
[URL="http://www.php.net/echo"]echo[/URL] [COLOR= #DD0000]"data is verwijderd
"[/COLOR][COLOR= #007700];[/COLOR]
[URL="http://www.php.net/mysql_close"]mysql_close[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$conn[/COLOR][COLOR= #007700]);[/COLOR]
?> 
maar ik heb hem nu opgelost.