"SELECT * FROM `income_expense_history` WHERE `time` = \"$data\" "
, ошибки больше нет. Но значений тоже нет <form action="report.php">
<label>Ежедневный отчет за:</label>
<input type="text" name="date" class="from_date select_date" value="<? echo $date = date('Y-m-d'); ?>">
<input type="submit">
</form>
$data = $_GET["date"];
//echo $data;
if(isset($data)){
$result = mysql_query("SELECT * FROM income_expense_history WHERE time = $data");
}else{
$result = mysql_query("SELECT * FROM income_expense_history");
}
//$result - ассоциированный массив, т.е. таблички, у которой есть названия столбцов
//узнаем, сколько в массиве $result строчек
$n=mysql_num_rows($result);
//вывод на страничку в виде таблицы
echo "<table border=1 cellspacing=0 cellpadding=2 style=width: 75% align=center>
<tr>
<th>Время</th>
<th>Приход</th>
<th>Расход</th>
<th>Комментарий</th>
<th>Автор</th>
</tr>";
//вывод построчно
for($i=0;$i<$n;$i++)
echo
</td><td>",mysql_result($result,$i,time),
"</td><td>",mysql_result($result,$i,income),
"</td><td>",mysql_result($result,$i,expense),
"</td><td>",mysql_result($result,$i,comment),
"</td><td>",mysql_result($result,$i, author),
"</td></tr>";
echo "</table>";
?>
<form action="report.php">
<label>Ежедневный отчет за:</label>
<input type="text" name="date" class="from_date select_date" value="<? echo $date = date('Y-m-d'); ?>">
<input type="submit">
</form>
$data = $_GET["date"];
if(isset($data)){
$result = mysql_query("SELECT * FROM income_expense_history WHERE time = $data");
}else{
$result = mysql_query("SELECT * FROM income_expense_history");
}
[
'class'=>'kartik\grid\EditableColumn',
'header'=>'Тэг',
'attribute'=>'teg',
],
Getting unknown property: yii\grid\GridView::bootstrap
$pdf = new Pdf([
'mode' => Pdf::MODE_UTF8, // leaner size using standard fonts
'content' => $this->renderPartial('_includes/_send_template.php'),
'options' => [
'title' => 'Privacy Policy - Krajee.com',
'subject' => 'Generating PDF files via yii2-mpdf extension has never been easy'
],
'methods' => [
'SetHeader' => ['Generated By: Krajee Pdf Component||Generated On: ' . date("r")],
'SetFooter' => ['|Page {PAGENO}|'],
]
]);
$result = Yii::$app->mailer->compose()
->setFrom('nik.obaturov@yandex.ru')
->setTo('nik.obaturov@yandex.ru')
->setHtmlBody($pdf)
->setSubject('Портал')
->send();
return $result;
quoted_printable_encode() expects parameter 1 to be string, object given
1. in C:\OpenServer\OSPanel\domains\yii2\vendor\swiftmailer\swiftmailer\lib\classes\Swift\Mime\ContentEncoder\NativeQpContentEncoder.php