Hello can you help me with this script?
Im trying to pull information on my slider from database.
$query = "SELECT * FROM `slider1`";
$select_from_slider1 = mysqli_query($connection, $query);
while ($row = mysqli_fetch_assoc($select_from_slider1)){
$slider1_title = $row['slider1_title'];
$slider1_content = $row['slider1_content'];
$slider1_moreinfo = $row['slider1_moreinfo'];
?>
<h2><?php echo $slider1_title ?></h2>
<p><?php echo $slider1_content ?></p>
<?php echo $slider1_moreinfo ?>
<?php } ?>
Lol im sorry i figured it out myself, the reason for the error was that i dublicated many times include "database".... Thanks guys for the fast replies.!