Movie title, Movie image, Movie subject, Movie country, Movie year, Movie Artists. I can add them to the database and display them on the main page
How can I show the movie viewing quality with the check box?
I added an image for the question http://ift.tt/2iD31Gw
admin.php
<form id="form_validation" method="POST">
<div class="form-group form-float">
<div class="form-line">
<input type="text" class="form-control" name="name" required>
<label class="form-label">Filmin Adı</label>
</div>
</div>
<div class="form-group form-float">
<div class="form-line">
<input type="number" class="form-control" name="surname" required>
<label class="form-label">Film Sırası</label>
</div>
</div>
<div class="form-group form-float">
<div class="form-line">
<input type="text" class="form-control" name="email" required>
<label class="form-label">Yönetmen</label>
</div>
</div>
<div class="form-group form-float">
<div class="form-line">
<input type="number" class="form-control" name="surname" required>
<label class="form-label">Oyuncular</label>
</div>
</div>
<div class="form-group form-float">
<div class="form-line">
<input type="number" class="form-control" name="surname" required>
<label class="form-label">Ülke</label>
</div>
</div>
<div class="form-group form-float">
<div class="form-line">
<input type="number" class="form-control" name="surname" required>
<label class="form-label">Yapım Yılı</label>
</div>
</div>
<div class="form-group form-float">
<div class="form-line">
<textarea name="description" cols="30" rows="5" class="form-control no-resize" required></textarea>
<label class="form-label">Konu</label>
</div>
</div>
<div class="form-group">
<input type="checkbox" id="checkbox" name="checkbox">
<label for="checkbox"><img src="images/hd.png" width="32" height="32" alt=""/></label>
</div>
<button class="btn btn-primary waves-effect" type="submit">Kaydet</button>
</form>
main page-- index.php
<?php
$stmt = $baglanti->prepare('SELECT * FROM film ORDER BY film_sira ASC');
$stmt->execute();
if($stmt->rowCount() > 0)
{
while($goster=$stmt->fetch(PDO::FETCH_ASSOC))
{
extract($goster);
?>
<div class="row">
<div class="col-sm-2">
<div class="thumbnail"><img src="kapak/<?php echo $goster['film_yol']; ?>" alt="<?php echo $goster['film_ad']; ?>"> </div>
<div class="ribben" id="yeni">
<p style="text-shadow: 2px 2px 2px black; text-align: center; " > YENİ</p>
</div>
</div>
<div class="col-sm-10 ">
<div class="caption"><h3>FİLMİN ADI : <?php echo $goster['film_ad']; ?></h3>
<hr style="border:1px solid #484848; opacity: 0.2;">
<p>FİLMİN ORJİNAL ADI:</p>
<p ><strong style="color:#787878">FİLMİN KONUSU :</strong> <?php echo $goster['konu']; ?></p>
<p><strong style="color:#787878">YÖNETMEN :</strong> <?php echo $goster['yonetmen']; ?></p>
<p><strong style="color:#787878">OYUNCULAR :</strong> <?php echo $goster['oyuncular']; ?></p>
<p><strong style="color:#787878">ÜLKE :</strong> <?php echo $goster['ulke']; ?> <strong style="color:#787878">YAPIM YILI :</strong> <?php echo $goster['yapim_yili']; ?></p>
<p style="color:skyblue">
<p><strong style="color:#787878">Kategori : </strong> <?php echo $goster['kategori']; ?></p><br>
<div class="col-sm-2">
<img src="ikon/hd.png" width="32" height="32" alt=""/>
</div>
</p>
</div>
<br>
</div>
Aucun commentaire:
Enregistrer un commentaire