|
|
<?php
// billede henter aktuelle data til galleri-, fotograf- og alt-tekst i formen $billed_query = "SELECT * FROM billed LEFT JOIN fotograf on fk_fgrf_id = fgrf_id LEFT JOIN gall on fk_gall_id = gall_id WHERE billed.billed_id = $billed_id"; $billed_result = mysqli_query($db_link,$billed_query); $billed_antal = mysqli_num_rows ($billed_result); $billed_row = mysqli_fetch_assoc ($billed_result); ?> <?php // galleri henter data til drop-down menuen i formen $gall_query = "SELECT * FROM gall"; $gall_result = mysqli_query($db_link,$gall_query); $gall_antal = mysqli_num_rows ($gall_result); ?> <?php // fotograf: henter data til drop-down menuen i formen if ($fotograf == "1") { $fgrf_query = "SELECT * FROM fotograf"; $fgrf_result = mysqli_query($db_link,$fgrf_query); $fgrf_antal = mysqli_num_rows ($fgrf_result); } ?> |