I've tried everything but... marquee is showing in two lines but i want it on one line.
Here is my code:
<?php
$con=mysqli_connect("localhost","Protected","Protected","Protected");// Check connection
if (mysqli_connect_errno()) {
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($con,"SELECT * FROM questions");
while($row = mysqli_fetch_array($result)) {
echo "<style>";
echo "marquee { white-space: pre; }";
echo "</style>";
echo "<marquee>";
echo '<span class="name">' . '•' . "<b>Naam:</b> " . $row['naam'] . "<b> Vraag:</b> " . $row['vraag'] . "</span>". "</marquee>";
}
mysqli_close($con);
?>
Does anyone know the problem in my code?