(async function() {
var result = await $.post('api/index.php', { raz: 'Привет, мир!' } );
console.log('Ответ сервера:', result);
})();
console.log
$_POST
<?php
header('Content-Type: text/plain; charset=UTF-8');
$json = json_encode($_POST, JSON_UNESCAPED_UNICODE);
file_put_contents('POST.json', $json);
echo 'Данные получены и записаны в файл POST.json -> смотри его.';
string res=Properties.Resources.Data_XMLFile;
XmlReader xml2 = XmlReader.Create(new StringReader(res));
Uri uri = new Uri("pack://application:,,,/Resources/Data_XMLFile.xml", UriKind.Absolute);
StreamResourceInfo info = Application.GetResourceStream(uri);
XmlReader xml = XmlReader.Create(info.Stream);
<TreeView Padding="0,3,0,0" Background="#FF09304A">
<TreeView.Resources>
<Style Type="Label">
<Setter Property="Foreground" Value="White" />
<Setter Property="Margin" Value="10" />
</Style>
</TreeView.Resources>
<Label Content="Формула 1" />
<Label Content="Формула 2" />
<Label Content="Формула 3" />
</TreeView>
SqlDataReader loginReaderData = LoginData.ExecuteReader();
while (loginReaderData.Read())
{
var id = loginReaderData["ID"];
// ...
}
string sqlExpression = "SELECT ID FROM Users WHERE ID = 1";
SqlCommand loginData = new SqlCommand(sqlExpression, connection);
var id = (string)loginData.ExecuteScalar();
//...
Fetches one row of data from the result set and returns it as an enumerated array
SELECT MAX( id ) FROM table;
$lim= $mysqli->query("SELECT MAX( id ) FROM table");