📄 test2.classes.php

Size: 1,575 bytes
Path: /home/islandholiday/public_html/admin/panel/OLD/test2.classes.php
Modified: 2020-10-01 04:46:24

// // $imgCla = New Images();
// // $img_updt = $imgCla->updateImage('pic2','helo.png','8');
// // //$img_add = $imgCla->addImages('helo.png','','');

// // var_dump($img_updt);
// // //echo $img_add['last_id'];


// // $cab= new Images();
// //     $cab_get= $cab->getcabImages(9);
    
// //     var_dump($cab_get);
// //     // Target directory
    
// //     $pictures = array();
// //     // Read files
// //     while($cab_row = $cab_get->fetch(PDO::FETCH_ASSOC)){
            
// //             $p=DecryptInput($cab_row['pic']);
// //             array_push($pictures, $p);

            
// //     }

//     public function updateTourImage($picNo,$pic,$imgID){
//             $sqlQuery = "UPDATE ". $this->tour_img_table ." 
//                         SET 

//                         ".$picNo." = ? 
                         
//                         WHERE imgID = ?";
        
//             $stmt = $this->conn->prepare($sqlQuery);

//             // sanitize & Encrypt
//             $pic=EncryptInput($this->conn,$pic);

            
//             if($stmt->execute([$pic, $imgID])){
//                $array =array();
//                 $array['resultArray'] = $array;
//                     $index['success'] = 1;
//                     $array['resultArray']= $index;
                      
//                // echo json_encode($array['resultArray']);

//                     return $array['resultArray'];
//             }
//             return false;

//         }
// //     echo json_encode($pictures);