<?php
return [
"dbname"=>"dbname/schema",
"user"=>"postgres",
"password"=>"******",
"host"=>"localhost",
"driver"=>"pdo_pgsql"
];
Выводиться как
test
test
test2
$("#save").click(function(){
$.ajax({
type: "POST",
'dataType': 'json',
url: "test.php",
data: {
id: $('#id').val(),
summa: $('#summa').val(),
del: $('#del').val(),
logic: $('#logic').val(),
save: true,
},
success: function(data) {
if(data['status'] == 'success'){
alert('Данные переданы');
}
else{
alert('Произошла ошибка!');
}
}
});
});
https://test/index.php?id='DROP TABLE
$result = $mysqli->query("SELECT path FROM `stud` where `id_stud` = {$_GET['dw_id']}");
$fiostud= $_POST['fiostud'];
$vidrab = $_POST['vidrab'];
$result = $mysqli->query("SELECT path FROM `stud` where vid_rab='$vidrab' and fio_stud='$fiostud'");