topical media & game development
basic-php-06-delete.php / php
<?php
link)
or die ( mysql_error());
// DELETE SCRIPT
if (!isset(_GET['do'] != 1) {
?>
<p align="center" style="color:#FF0000">
Are you sure you want to delete this <?php
echo _SERVER['REQUEST_URI']; ?>&do=1">yes</a>
or <a href=<index.php>>Index</a>
</p>
<?php
} else {
if (actor = "UPDATE movie
SET movie_leadactor = '0'
WHERE movie_leadactor = '" . result = mysql_query(director = "UPDATE movie
SET movie_director = '0'
WHERE movie_director = '" . result = mysql_query(sql = "DELETE FROM " . _GET['type'] . "_id = '" . sql . "-->";
sql)
or die("Invalid query: " . mysql_error());
?>
<p align="center" style="color:#FF0000">
Your <?php echo
(C) Æliens
20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher.
In case of other copyright issues, contact the author.