Welcome, guest! Login / Register - Why register?
[ Pastes: 80907 ] [ Members: 1934 ]

Paste

Plain view | Edit code: here. | Add this to your website. | Report abuse.

Short URL: http://goo.gl/kAyh6

Pasted as PHP by black on Friday, November 25th, 2011 1:10am ( 4 years ago )

$salesArrayList = array();
$varq = array();
while($row = mysql_fetch_array($result)){
 $pid=$row["stock_products_code"];
 $dir = "assets/sale/".$pid."/";
 $dh = opendir($dir);
 while (($file = readdir($dh)) !== false) {
  $vpxd=$file;
  if($vpxd=="." || $vpxd==".."){
  //
  //##
  //
  }else{
  $vpxd=str_replace(".jpg","", $vpxd);
  $string = implode(',', $varq);
  $viso= $vpxd.$string;
  }
 }
 array_push($varq, $row[0]);
}

echo $viso;

Revise this Paste

Your Name:
Code Language:

To minimise the influx of spam: you are required to register to post any code.