<?php
// Prepare variables for database connection
$dbusername = "id3500299_sg2017"; // enter database username, I used "arduino" in step 2.2
$dbpassword = "0882134797"; // enter database password, I used "arduinotest" in step 2.2
$server = "localhost";
// IMPORTANT: if you are using XAMPP enter "localhost", but if you have an online website enter its address, ie."www.yourwebsite.com"
$My_db = "id3500299_smartguardian";
// Connect to your database
$dbconnect = mysqli_connect($server, $dbusername, $dbpassword,$My_db);
$dbselect = mysql_select_db("id3500299_smartguardian",$dbconnect);
// Prepare the SQL statement
$sql = "INSERT INTO Events (Message) VALUES ('".$_GET["c"]."')";
// Execute SQL statement
mysqli_query($sql,$dbconnect);
?>
ขึ้น error แบบนี้อ่ะครับ
Fatal error: Uncaught Error: Call to undefined function mysql_select_db() in /storage/ssd5/299/3500299/public_html/add_data.php:18 Stack trace: #0 {main} thrown in /storage/ssd5/299/3500299/public_html/add_data.php on line 18