Problem! Please try to log in again.

"); exit(); } $fr = $_GET['fr']; if($fr != $dnum){ echo(">>>Please Log in to view this page."); exit(); } //needs security check ?>
Return to your page

Eco-$mart Web Site Administration

WEB FEEDS [ New Web Feed Product ]   [ Web Feed Users ]   [ Your Page ]
" . "$value"); $getem=mysql_query("SELECT ID,Category,Product,Description,Price,Unit,Min,Image_Name,Image_Qty,Status,dtnum FROM webfeed WHERE Category='$value' ORDER BY Product"); if(!$getem){ $airs[]="Could not get product list. Error: ".mysql_error(); }else{ while($row = mysql_fetch_array($getem)){ $ID=$row['ID']; $Category=$row['Category']; $Product=$row['Product']; $Description=$row['Description']; $Price=$row['Price']; $Unit=$row['Unit']; $Min=$row['Min']; $Image_Name=$row['Image_Name']; $Image_Qty=$row['Image_Qty']; $Status=$row['Status']; $dtnum=$row['dtnum']; if($Category==$Product){ $cID=$ID; $cProduct=$Product; $cDescription=substr($Description, 0, 40); $cImage_Name=$Image_Name; $cStatus=$Status; $cdtnum=$dtnum; $chunk_due = chunk_split($cdtnum, 2, ":"); $chunk_arrd = explode(":", $chunk_due); $cupdate = $chunk_arrd[2]."/".$chunk_arrd[3]."/".$chunk_arrd[0].$chunk_arrd[1]; }else{//CATEGORY DOES NOT EQUAL PRODUCT $IDs[]=$ID; $Categorys[]=$Category; $Products[]=$Product; $Descriptions[]=substr($Description, 0, 40); $Prices[]=$Price; $Units[]=$Unit; $Mins[]=$Min; $Image_Names[]=$Image_Name; $Image_Qtys[]=$Image_Qty; $Statuss[]=$Status; $chunk_due = chunk_split($dtnum, 2, ":"); $chunk_arrd = explode(":", $chunk_due); $update = $chunk_arrd[2]."/".$chunk_arrd[3]."/".$chunk_arrd[0].$chunk_arrd[1]; $Updates[]=$update; }//category is not product }//while fetching row echo(" " . " " . "ID" . "Product Name" . "Description" . "Price" . "Unit" . "Min" . "Image" . "QTY" . "Status" . "Updated" . "" . "" . "EDIT WEB FEED" . "" . "" . "DELETE WEB FEED" . "$cID" . "$cProduct" . "$cDescription" . " " . " " . " " . "" . "" . "$Product" . " " . "$cStatus" . "$cupdate" . ""); $i=0; $counts=count($IDs); while($i<$counts){ echo("" . "EDIT WEB FEED" . "" . "" . "DELETE WEB FEED" . "$IDs[$i]" . "$Products[$i]" . "$Descriptions[$i]" . "$Prices[$i]" . "$Units[$i]" . "$Mins[$i]" . "" . "" . "$Products[$i]" . "$Image_Qtys[$i]" . "$Statuss[$i]" . "$Updates[$i]" . ""); $i=$i+1; }//whilst counting down IDs }//gotem echo(""); }//for each unique category ?>
©2011 Eco-$mart, Inc. [ Return to your page ] TOP
"); }//4each }//airs is not empty ?>