Şuanki Dizin: /home/wwwdreamtechnolo/public_html/bprisk.online/strongergenadmin/api/ |
Şuanki Dosya : /home/wwwdreamtechnolo/public_html/bprisk.online/strongergenadmin/api/success-story-list.php |
<?php require_once("../lib/function.php"); $db = new login_function(); $response = array(); if(isset($_POST['mobile_number'])) { $mobile_number = $_POST['mobile_number']; $array_data_main = array(); $excercise_data = array(); $excercise_data = $db->get_all_story_report(); //print_r($excercise_data); if(!empty($excercise_data)) { $im_counter = 0; foreach($excercise_data as $main_record) { $main_record = array(); $main_record['id'] = $excercise_data[$im_counter][0]; $var_mob_no = $excercise_data[$im_counter][1]; $user_name = $db->get_name_from_mob_no_user($var_mob_no); $main_record['name'] = $user_name; // $excercise_data[$im_counter][1]; $main_record['age'] = $excercise_data[$im_counter][2]; $main_record['image1'] = 'https://www.strongergen.com/strongergenadmin/success_story/'.$excercise_data[$im_counter][5]; $main_record['image2'] = 'https://www.strongergen.com/strongergenadmin/success_story/'.$excercise_data[$im_counter][6]; $main_record['description'] = $excercise_data[$im_counter][3]; if (is_array($array_data_main)) { array_push($array_data_main,$main_record); } else { $array_data_main = $main_record; } $im_counter++; } //array_push($array_data_main,$excercise_data); $response["status"] = 1; $response["message"] = $array_data_main; } else { $response["status"] = 0; $response["message"] = "No Excercise Data Found"; } } else { $response["status"] = 0; $response["message"] = "No Key Found"; } echo json_encode($response); ?>
Linux 65-254-81-4.cprapid.com 5.14.0-284.11.1.el9_2.x86_64 #1 SMP PREEMPT_DYNAMIC Tue May 9 05:49:00 EDT 2023 x86_64
Apache
65.254.81.4