On 31/05/07, blueboy <[EMAIL PROTECTED]> wrote:
On my localhost this works fine

$result= mysql_query("SELECT date_format(date, '%d/%m/%Y') as date, title, id, 
display FROM NEWS");

1. check return values, $result should not be false unless there's a problem.
2. if $result is false, check mysql_error() it'll tell you more about
what's gone wrong.

for example:

$result = mysql_query($query) or die(mysql_error());

-robin

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to