All pastes #191537 Raw Edit

Unnamed

public php v1 · immutable
·published 2006-10-05 02:18 UTC
rendered paste body
<?php if ($addCategory == "ADD") {       $sql = "DELETE FROM Categories WHERE catId = '".$catDelete."' "; 	  echo $sql;       mysql_select_db('news', $db);	  if (@mysql_query($sql)) {         echo("<p>Category Deleted.</p>");       } else {         echo("<p>Error deleting category: " .              mysql_error() . "</p>");       } }?>