Ken W
2008-05-16 13:18:04 UTC
my fields are Id, and content
$query = "SELECT Id, content FROM main_page ORDER BY Id";
$result = mysql_query($query) or die('Error : ' . mysql_error());
while($row = mysql_fetch_array($result, MYSQL_NUM))
{
list($Id, $title) = $row;
$content .= "
}
database connection coding:
$username = "root";
$password = "";
$hostname = "localhost";
$con = mysql_connect($hostname,$username,$password) or die ("Unable to connect");
$dbname = 'banknorth';
mysql_select_db($dbname);
?>
help!! haha i dont have an error to go by its just not displaying anything