<?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 <br> <a href="<?php echo _SERVER['REQUEST_URI']; ?>&do=1">yes</a> or <a href=<index.php>>Index</a> </p> <?php } else { if (// delete references to people from the movie table // delete reference to lead actor actor = "UPDATE movie SET movie_leadactor = '0' WHERE movie_leadactor = '" . result = mysql_query(// delete reference to director director = "UPDATE movie SET movie_director = '0' WHERE movie_director = '" . result = mysql_query(// generate SQL sql = "DELETE FROM " . _GET['type'] . "_id = '" . // echo SQL for debug purpose echo "<!--" . sql . "-->"; sql) or die("Invalid query: " . mysql_error()); ?> <p align="center" style="color:#FF0000"> Your <?php echo </a> </p> <?php } ?>
(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.