Page 786 - 3-2
P. 786
task.execute(id);
}
}
[login.php]
<?php
$con=mysqli_connect("127.0.0.1","root","raspberry","mdp_test");
if (mysqli_connect_errno($con)) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$id = $_POST['id'];
$password = $_POST['password'];
$result = mysqli_query($con,"SELECT password FROM info WHERE id='$id'");
$row = mysqli_fetch_array($result);
$data = $row[0];
echo $row[0];
mysqli_close($con);
?>
[activity_rent.xml]
대여 화면 우산을 선택하면 난수를 화면에 띠우고 선택한 우산의 번호를 부여해 라즈베리에 보냄, .
- 786 -