Trying to connect to the database can involve setting up your database. Make
sure that you have a valid login/password that is recognized by MySQL.
Please keep in mind that MySQL works on permission by hosts. So your host IP
must be matched with the username/password on the database for a successfu
It seems like there are several questions emerging, but ...
Try echoing your query to the page by putting echo $query in your code before
you call mysql, then copy it and run it in phpmyadmin. If it runs then you know
your problem is somewhere else like the connection. This can really help you
On Wed, Dec 15, 2010 at 3:11 PM, Gary wrote:
>
> Sent: Wednesday, December 15, 2010 2:44 PM
> Subject: Re: [PHP] Error Querying Database
>
>>> > On Wed, 2010-12-15 at 13:42 -0500, Gary wrote:
>>> >> I cant seem to get this to connect. This is to my local te
Sent: Wednesday, December 15, 2010 2:44 PM
Subject: Re: [PHP] Error Querying Database
>> > On Wed, 2010-12-15 at 13:42 -0500, Gary wrote:
>> >> I cant seem to get this to connect. This is to my local testing
>> >> server,
>> >> which is on, so w
On Wed, 2010-12-15 at 14:44 -0500, Steve Staples wrote:
> On Wed, 2010-12-15 at 14:34 -0500, Gary wrote:
> > "Steve Staples" wrote in message
> > news:1292440837.5460.8.ca...@webdev01...
> > > On Wed, 2010-12-15 at 13:42 -0500, Gary wrote:
> > >> I cant seem to get this to connect. This is to m
On Wed, 2010-12-15 at 14:34 -0500, Gary wrote:
> "Steve Staples" wrote in message
> news:1292440837.5460.8.ca...@webdev01...
> > On Wed, 2010-12-15 at 13:42 -0500, Gary wrote:
> >> I cant seem to get this to connect. This is to my local testing server,
> >> which is on, so we need not worry that
"Steve Staples" wrote in message
news:1292440837.5460.8.ca...@webdev01...
> On Wed, 2010-12-15 at 13:42 -0500, Gary wrote:
>> I cant seem to get this to connect. This is to my local testing server,
>> which is on, so we need not worry that I have posted the UN/PW.
>>
>> This is a duplicate of a
On Wed, 2010-12-15 at 13:42 -0500, Gary wrote:
> I cant seem to get this to connect. This is to my local testing server,
> which is on, so we need not worry that I have posted the UN/PW.
>
> This is a duplicate of a script I have used countless times and it worked.
> The error message is 'Error
""Daniel P. Brown"" wrote in message
news:aanlkti=gemvzmpjg1uvb4_tdacqlbzyfjcgvd+har...@mail.gmail.com...
On Wed, Dec 15, 2010 at 13:42, Gary wrote:
> I cant seem to get this to connect. This is to my local testing server,
> which is on, so we need not worry that I have posted the UN/PW.
>
> Thi
On Wed, Dec 15, 2010 at 13:42, Gary wrote:
> I cant seem to get this to connect. This is to my local testing server,
> which is on, so we need not worry that I have posted the UN/PW.
>
> This is a duplicate of a script I have used countless times and it worked.
> The error message is 'Error query
10 matches
Mail list logo