Re: local v remote

From: Date: Thu, 31 May 2007 11:17:29 +0000
Subject: Re: local v remote
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-255903@lists.php.net to get a copy of this message
On 31/05/07, blueboy <ross@aztechost.com> 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

« previous php.general (#255903) next »