sale

Latest Blog

"); $news_query = @mysql_query("SELECT * FROM $tableName1 ORDER BY dateAdded desc LIMIT 4"); $total_rows = @mysql_num_rows($news_query); while($myNewsData = @mysql_fetch_array($news_query)){ $id = $myNewsData["ID"]; $title = $myNewsData["title"]; $fullbody = $myNewsData["text"]; $body = substr($fullbody, 0, 180); $img = $myNewsData["image_name"]; $author = $myNewsData["author"]; $date = $myNewsData["dateAdded"]; // print "first date = " .strftime("%d,%m,%Y", strtotime($date)); $dateInput = strftime("%d %b %Y", strtotime($date)); print("

$title

$body...more

"); } print("
"); //Latest products bit goes here print("

New arrivals

"); $product_query = @mysql_query("SELECT * FROM $tableName2 ORDER BY ID desc LIMIT 2"); $total_rows = @mysql_num_rows($product_query); while($myProductData = @mysql_fetch_array($product_query)){ $design = $myProductData[design]; $price = $myProductData[price]; $colour = $myProductData[colour]; $type = $myProductData[prod_type]; $description = $myProductData[description]; $id = $myProductData[ID]; $img = $myProductData[image_name]; // need to get rid of sex= m from this when it goes to just store --> print("

.$design.$design ".$type." in ".$colour."

".$description."
£".$price."

"); } print("
"); function do_error($error) { echo $error; die; } ?>