I'm trying to display items for a database on my index, but only from the id's I want, not the whole table. So far ive tried this but it does not work:
Download.php
<?php
$id = $_GET['id'];
$con=mysqli_connect("kennyist.com","user","pass","table");
if (mysqli_connect_errno())
{
echo "Failed to connect to MySQL: " . mysqli_connect_error();
}
$result = mysqli_query($con,"SELECT * FROM `wp_wpfb_files` WHERE `file_id`=" . $id);
$row = mysqli_fetch_array($result)
mysqli_close($con);
?>
And im trying to echo it like this (saw something like this before):
<div class="version"><?php echo('download.php?id=27', $row['file_version']);?></div>