Hi.
I'm trying to fetch a single row where by the id of it is called by the browser. So if URL is internet.com/index.php?id=1, it will fetch a row where the column page_id is 1. This is my code:
<?
error_reporting(E_ALL);
include('common_db.php');
db_connect('****');
mysql_select_db('****');
$result = mysql_query("SELECT * FROM content WHERE page_id = '" . $id . "'");
while ($row2 = mysql_fetch_assoc($result))
{
?>
<font color="#FFFFFF"><?php echo $row2['page_content']; ?></font>
<?php
}
?>
But it doesn't fetch the row. No error message or nothing. Any help much appreciated.🙂