Code: Select all
<?php
include('config.php');
// Performing SQL query
$query = 'SELECT * FROM games WHERE id = "1" ORDER BY id DESC';
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { ?>I have been searching the net for hours now trying different things, I have been trying to use something along the lines of:
Code: Select all
<?php
$id = $_get['id'];
include('config.php');
// Performing SQL query
$query = "SELECT * FROM games WHERE id = '$id'";
$result = mysql_query($query) or die('Query failed: ' . mysql_error());
while ($line = mysql_fetch_array($result, MYSQL_ASSOC)) { ?>Code: Select all
<?php echo"$line[title]" ?>