include ("conf.php");
$zap = "SELECT * FROM slider";
$wynik = mysqli_query($db, $zap);
echo mysqli_error($db);
while($row = mysqli_fetch_assoc($wynik)){
echo '
'; if ($row['haslo'] != ""){echo '
'.$row['haslo'].'
';} echo '
';
}
?>
$zap = "SELECT * FROM slider2 ORDER BY RAND()";
$wynik = mysqli_query($db, $zap);
echo mysqli_error($db);
while($row = mysqli_fetch_assoc($wynik)){
echo '
'.$row['oferta'].'
'.$row['tresc'].'
';
}
?>
switch ($_GET['page']){
case '';
include("home.php");
break;
case '1';
include("ofertahiroll.php");
break;
case '2';
include("ofirmie.php");
break;
case '3';
include("ofertaall.php");
break;
case '4';
include("kontakt.php");
break;
case '5';
include("historia.php");
break;
case '6';
include("praca.php");
break;
case '7';
include("rozne.php");
break;
case '8';
include("nowosci.php");
break;
}
?>