File manager - Edit - /home/autoph/public_html/data03252025consolidation/api/controllers/interest_hobbies.php
Back
<?php class InterestHobbies{ function read_interest_content($search,$interestCategory,$db){ $contents = $db -> return_result("SELECT id,name FROM `customer_interest_content` WHERE interest_id = '$interestCategory' AND status=1 AND `name` LIKE '%$search%' ORDER BY name ASC LIMIT 10"); $json = []; foreach($contents as $content){ $json[] = ['id'=>$content['name'], 'text'=>$content['name']]; } echo json_encode($json); } function read_interest_id_by_name($id,$name,$db){ return $db -> select("SELECT id FROM `customer_interest_content` WHERE status=1 AND `name` = '$name' AND interest_id = '$id' "); } function create_interest($id,$name,$db){ return $db -> sql_query_id("INSERT INTO customer_interest_content (interest_id,name,status) VALUES ('$id','$name','1')"); } } ?>
| ver. 1.4 |
.
| PHP 7.3.33 | Generation time: 0 |
proxy
|
phpinfo
|
Settings