-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsend.php
More file actions
17 lines (15 loc) · 763 Bytes
/
send.php
File metadata and controls
17 lines (15 loc) · 763 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<?php
require_once 'connection.php';
$link = mysqli_connect($host,$user,$password,$database) or die("Ошибка " . mysqli_error($link));
$hypertension = $_POST['hypertension'];
$heart = $_POST['heart'];
$age = $_POST['age'];
$sugar = $_POST['sugar'];
$sex = $_POST['sex'];
$smoking = $_POST['smoking'];
$residence = $_POST['residence'];
$stroke = $_POST['stroke'];
$sql = "INSERT INTO `strokedata` (`hypertension`, `heartdisease`, `age`, `sugarlvl`, `sex`, `smoke`, `residence`, `stroke`) VALUES ('{$hypertension}', '{$heart}', '{$age}', '{$sugar}', '{$sex}', '{$smoking}', '{$residence}', '{$stroke}');";
mysqli_query($link, $sql) or die("Ошибка " . mysqli_error($link));
mysqli_close($link);
?>