Example #1
0
 public function postFetchotherven()
 {
     $id = $_POST['prod_id'];
     $product = Product::find($id);
     $ovid = $product->ovid;
     $arr = explode(',', $ovid);
     unset($arr[0]);
     $str = "<table>";
     $str = "<tr><th>Florist</th><th>Price</th></tr>";
     foreach ($arr as $key => $value) {
         $pvrln = Prodvenrelations::find($value);
         $ven_name = User::fetch_name($pvrln->vendor_id);
         $str .= "<tr>";
         $str .= "<td>" . $ven_name . "</td>";
         $str .= "<td>" . $pvrln->regular_price . "</td>";
         $str .= "</tr>";
     }
     $str .= "</table>";
     return $str;
 }