daily pastebin goal
69%
SHARE
TWEET

Untitled

a guest Nov 20th, 2017 63 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function report_details($display = null) {
  2.  
  3.  
  4.     if($display){
  5.         $imagePath = SITEURL . "images/";
  6.     } else {
  7.         $imagePath = SITEPATH . "images/";
  8.     }  
  9.     include("includes/db.php");
  10. $query = $con->query("SELECT * FROM survey_details");
  11.  
  12. while($row = $query->fetch_assoc()){
  13. $sqlimg = $con->query("SELECT * FROM photo_img WHERE surv_id='$row[survey_id]'");  
  14. $resimg = $sqlimg->fetch_assoc();
  15.  
  16.     $reportdetails = array(
  17.         array('BrandIcon' => $imagePath . "facebook.png",'Comapany' => "facebook",'Rank' => "2",'Link' => "http://www.facebook.com"),
  18.  
  19.     );
  20. return $reportdetails;  
  21. }
  22.  
  23. }
RAW Paste Data
Top