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

Paste

Short URL: http://goo.gl/kAyh6
Pasted as PHP by black on Friday, November 25th, 2011 1:10am ( 5 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.