บทความ

กำลังแสดงโพสต์จาก พฤษภาคม, 2019

การประยุกต์ใช้ Line notify ในกรณี user พิมพ์มาไม่ตรงกับ intent ใดๆ ใน Abdul

รูปภาพ
test https://localhost/noti.php?token=line_notify_token&user_id=U12fddaf8f57c6685b2b7120e23328e71&img=https://localshost/img/verygood.png &message=test //////////////// php /////////////// <?php $user_id = $_REQUEST['user_id']; $token = $_REQUEST['token']; $message = $_REQUEST['message']; $pic = $_REQUEST['img']; $text = 'From '.$user_id.' '.$message; echo "___SILENT___"; $chOne = curl_init(); curl_setopt( $chOne, CURLOPT_URL, "https://notify-api.line.me/api/notify"); // SSL USE curl_setopt( $chOne, CURLOPT_SSL_VERIFYHOST, 0); curl_setopt( $chOne, CURLOPT_SSL_VERIFYPEER, 0); //POST curl_setopt( $chOne, CURLOPT_POST, 1); // Message curl_setopt( $chOne, CURLOPT_POSTFIELDS, $message); //ถ้าต้องการใส่รุป ให้ใส่ 2 parameter imageThumbnail และimageFullsize curl_setopt( $chOne, CURLOPT_POSTFIELDS, &qu

การ push กลับหา user

    <!DOCTYPE html>     <html>     <head>         <title></title> <style> body {     background: #ccc; } input[type=text] {   width: 218px; } input[type=submit] {   background: #000;   color: #fff; } input[type=submit], input[type=text] { padding: 9px; font-size: 18px; line-height: 18px; float: left; border: 0; display: block; margin: 0; } </style>     </head>     <body> <br> <table align="center"> <tr align="center"> <td align="center">         <form action="" method="post" align="center">            <input type="text" name="msg"><br><br>             <input type="submit" name="SubmitButton">         </form> </td> </tr> </table> <!-- <form action="#" method="post"> <

การใช้ abdul ดึงข้อมูลจาก mysql ด้วย PHP มาแสดงใน Line chatbot โดยใช้ XJSON

รูปภาพ
Abdul result  Line chatbot Mysql create table person id ( int auto increament) titleNameTHFULL(varchar) nameTh(varchar) surname (varchar) DeparmentName(varchar) groupname(varchar) phonenumber(varchar) php ///////////  connections.php ////// <?php $Setup_Server = 'host'; $Setup_User = 'user_db'; $Setup_Pwd = ''password_db"; $Setup_Database = 'name_db'; mysql_connect($Setup_Server,$Setup_User,$Setup_Pwd); mysql_query("use $Setup_Database"); mysql_query("SET NAMES UTF8"); ?> ///////////////// <?php header('Access-Control-Allow-Origin: *'); header('Access-Control-Allow-Methods: GET, POST');   include('connections.php'); $name = $_REQUEST['name']; $sql = "SELECT  * from  person where name   LIKE '%".$name."%'  "; $resource = mysql_query($sql); $count_row = mysql_num_