//ini_set("session.save_path","/nfs/cust/0/7/7/ilocan/.sessions") or die("Could not specify path"); //ini_set("session.save_path","c:/php/tmp") or die("Could not specify path"); //session_start(); include('library/config.php'); include('admin/dbfuncs.php'); include('library/funcs.php'); include('library/cartFuncs.php'); $conn = db_connect(); $sess_id = session_id(); if(isset($_GET['prodId'])) { $prodId = $_GET['prodId']; $sql = "select strProduct, strImgFile, txtDescript, dcPrice, iQuantity from tblProducts where iProdNo = ".$prodId; } else { //$sql = "select iProdNo, dtEntryDate, strProduct, strImgThumb, txtLeadIn, iQuantity from tblProducts where bMarkDeleted = false order by dtEntryDate desc"; $sql = "select iProdNo, strProduct, strImgThumb, txtLeadIn, iQuantity from tblProducts where bMarkDeleted = 1 order by dtEntryDate desc"; } $result = mysql_query($sql); $res = fillArray($result); $resCount = mysql_num_rows($result); showHeader('Products'); ?>