I have HTTP and my code i need thai word for save in $Get how i need data in

(Natawat Rajchompu) #1

HOW TO SEND MY THAI WORD TO MY PHP HOW IN GET
i can’t for my uri


this my code php

<?php header('Content-Type: text/html; charset=utf-8'); // Create connection $conn = new mysqli($host, $username, $password, $dbname); // Check connection mysqli_select_db($conn,"$dbname"); mysqli_query($conn,"SET NAMES UTF8"); $a= $_GET['type']; <----------------------I need save data here $sql = "SELECT * FROM detail INNER JOIN restuarant ON detail.id = restuarant.id_r WHERE type = '$a' "; $result = $conn->query($sql); $dbdata = array(); if ($result->num_rows > 0) { // output data of each row while($row = $result->fetch_assoc()) { $dbdata[]=$row; } } else { echo "0 results"; } echo json_encode($dbdata); $conn->close(); ?>