Well first off, i am really sorry if this is a duplicate topic. I did look but couldn't find anything.
Here is my code:
<div id="box">
<?php
$query = mysqli_query($connection, "SELECT 'id', 'name', 'url' FROM uploads");
if(!$query)
echo("Connection Error: " . mysqli_connect_error());
else
{
while($run = mysqli_fetch_array($query))
{
$videoid = $run['id'];
$videoname = $run['name'];
$videourl = $run['url'];
?>
<a href='http://Seann.me.uk/Streamy/view.php?video=<?php echo $videourl; ?>'>
<div id="url">
<?php echo $videoname; ?>
</div>
<?php
}
}
?>
</div>
$videoname just keeps coming back as "name" and $videourl comes back as http://Seann.me.uk/Streamy/view.php?video= I only have 2 videos in my database at the moment but obviously they have different names and id's. Any help is appreciated, thanks for reading.