FW: [PHP] mysql error

2005-04-01 Thread Mikey
Oooops!  My mistake, I had a typo in my config file - it connects just fine
either way...

> -Original Message-
> From: Mikey [mailto:[EMAIL PROTECTED] 
> Sent: 01 April 2005 13:16
> To: 'php-general@lists.php.net'
> Subject: RE: [PHP] mysql error
> 
> > >I have not changed any of my hostname/username/password code
> > in the last 6 months and I can still connect to 
> mysql.timerescue.co.uk 
> > via the command line interface.
> > > 
> > >Has anyone seen this before - any ideas at all - just
> > started happening
> > >today! :o(
> 
> Strange indeed.
> 
> I tried to connect first via the command line and it found 
> your server and threw me out with invalid login details, but 
> when I tried entering your servername into phpMyAdmin it 
> couldn't resolve the hostname.  However, when I replaced it 
> with your server IP it returned to not liking my login details.
> 
> Have there been any changes made to your DNS service of late? 
> Or provider?
> 
> Mikey
> 

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



Fw: [PHP] MySQL error... but it works!!??

2002-01-05 Thread Adam Baratz


- Original Message -
From: "Bas van Rooijen" <[EMAIL PROTECTED]>
To: "Adam Baratz" <[EMAIL PROTECTED]>
Sent: Saturday, January 05, 2002 4:39 PM
Subject: Re: [PHP] MySQL error... but it works!!??


>
> maybe try:
>
> if (!$result)
> {
>echo(mysql_error());
> }
>
> bvr.
> On Sat, 5 Jan 2002 15:55:39 -0500, Adam Baratz wrote:
>
> >> Does anyone have any idea why this is giving me a "Warning: Supplied
> >> argument is not a valid MySQL result resource in..." error?
> >
> >You'll have to give more code, which line you get that error from, etc.,
to
> >give us a better idea why it's "not working."
> >
> >However, a quick tip:
> >
> >> $crdate = date("Y-m-d");
> >> $result = mysql_query("SELECT * FROM sites WHERE creation_date =
'$crdate'
> >> AND status = 'T'");
> >
> >These two lines can be condensed since MySQL has a built-in function to
get
> >the current time/date:
> >
> >SELECT * FROM sites WHERE creation_date = NOW() AND status = 'T'
> >
> >-Adam
> >
> >
> >--
> >PHP General Mailing List (http://www.php.net/)
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >To contact the list administrators, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
>
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]