Profile
Pastes: 72032
Members: 1386

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 ( 2 years ago )

  1. $salesArrayList = array();
  2. $varq = array();
  3. while($row = mysql_fetch_array($result)){
  4.  $pid=$row["stock_products_code"];
  5.  $dir = "assets/sale/".$pid."/";
  6.  $dh = opendir($dir);
  7.  while (($file = readdir($dh)) !== false) {
  8.   $vpxd=$file;
  9.   if($vpxd=="." || $vpxd==".."){
  10.   //
  11.   //##
  12.   //
  13.   }else{
  14.   $vpxd=str_replace(".jpg","", $vpxd);
  15.   $string = implode(',', $varq);
  16.   $viso= $vpxd.$string;
  17.   }
  18.  }
  19.  array_push($varq, $row[0]);
  20. }
  21.  
  22. echo $viso;

Revise this Paste
Your Name:
Code Language:
 
Security Image:
Text seen in Image:
Comments

Nothing has been added as yet. Post a comment.