here is my problem..hoping someone can help out..
When I try this, it works!
<?php
//Database connetion
mysql_connect("localhost", "root", "") or
die("Could not connect: " . mysql_error());
mysql_select_db("cis");
$dbQuery = "SELECT * ";
$dbQuery .= "FROM news ";
$dbQuery .= "ORDER BY dateprint DESC";
$result = mysql_query($dbQuery) or die("Couldn't get file list");
?>
but when I try this, it doesnt work.. though it works at my work's web server, which I think has the old version of mysql/php..
//Database connetion
require_once('db.php');
$dbQuery = "SELECT * ";
$dbQuery .= "FROM news ";
$dbQuery .= "ORDER BY dateprint DESC";
$result = mysql_query($dbQuery) or die("Couldn't get file list");
?>
oh this is db.php:
<?
//Connect to the database paramiters
mysql_connect("localhost", "root", "") or
die("Could not connect: " . mysql_error());
mysql_select_db("cis");
?>
anyone has any clue??
let me know..thanks