Forum Moderators: coopster

Message Too Old, No Replies

could not connect to database?

         

Pico_Train

5:27 pm on Apr 25, 2007 (gmt 0)

10+ Year Member



Hi!

Am running PHP5, apache 2.0 and using a framework called zebra to do some work on my local machine which has phpmyadmin and PEAR and all that jazz.

Everything works fine, including my query but I can't seem to connect to my local DB for some reason. All the parameters for $db->connect are fine as far as I can tell but the machine won't let me in!

Any ideas on what I might be missing here?

capulet_x

7:32 am on Apr 26, 2007 (gmt 0)

10+ Year Member



I don't understand...you query works but you can't connect to your DB. What if any error are you getting?

wheelie34

1:50 pm on Apr 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Are you in as admin or user on the machine?

henry0

2:50 pm on Apr 26, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Echo the query
paste it in phpMyAdmin
check it out
looks like you conn via OOP script
are you sure that your script is OK
are the errors reporting turned On in your .ini?