Anyone can help explain why the following is not pulling the information back from database. The variable is pulled from a form, which should then pull the match from the database. Thanks!
<?
// include function files for this application
require_once("book_sc_fns.php");
$POST['catid'] = addslashes($POST['catid']);
admin_header();
echo "<BR>To update your category, change the information below and click submit. <BR>Your category information will be updated in your cart database<BR>";
@ $db = mysql_pconnect("localhost", "root", "root");
if (!$db)
{
echo "Error: Could not connect to database. Please try again later.";
exit;
}
mysql_select_db("book_sc");
$query = "SELECT catid, cat_image_type FROM categories WHERE ".$_POST['catid']." like '%".$catid."%'";
$result = mysql_query($query);
do_html_footer();
?>