<source src="<?= Url::to('@web/uploads/video/' . $video) ?>"></source>
$video = Video::find()->select('id, video')->all();
return $this->render('video', compact('video'));
$video = Video::find()->select('id, video')->all();
return $this->render('video', ['video'=>$video]);
<?=$video?>
обратились к нему как строке<?php foreach($video as $one): ?>
<div class="panel-body">
<video width="100%" height="auto" preload="auto" autoplay="autoplay"
loop="loop" poster="bg/daisy-stock-poster.jpg">
<source src="<?=$one->video?>" type="video/mp4"></source>
</video>
</div>
<?php endforeach; ?>
private void textBox8_TextChanged(object sender, EventArgs e)
{
if (comboBox1.Text == "number")
{
SqlConnection po = new SqlConnection("Data Source=max;Initial Catalog=lr;Integrated Security=True");
SqlDataAdapter sda = new SqlDataAdapter("SELECT number,name,city, data FROM people WHERE number like '%" + textBox8.Text + "%' ", po);
DataTable dt = new DataTable();
sda.Fill(dt);
dataGridView1.DataSource = dt;
}
else if (comboBox1.Text == "data")
{
SqlConnection po = new SqlConnection("Data Source=max;Initial Catalog=lr;Integrated Security=True");
SqlDataAdapter sda = new SqlDataAdapter("SELECT number,name,city, data FROM people WHERE data like '%" + textBox8.Text + "%'", po);
DataTable dt = new DataTable();
sda.Fill(dt);
dataGridView1.DataSource = dt;
}
}