Re: [PHP] local v remote
- From: robinv@xxxxxxxxx ("Robin Vickery")
- Date: Thu, 31 May 2007 12:17:29 +0100
On 31/05/07, blueboy <ross@xxxxxxxxxxxxx> 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
.
- References:
- local v remote
- From: "blueboy"
- local v remote
- Prev by Date: Removing PHPSESSID - CGI Install
- Next by Date: Re: php, mysql and ssl
- Previous by thread: Re: local v remote
- Next by thread: Re: local v remote
- Index(es):