iPowerWeb Hosting
 
Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read Web Directory

Go Back   Webmaster Forum > Designing and Developing Websites > Programming > PHP / MySQL

PHP / MySQL Discussions and help on PHP and MySQL.

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 06-30-2008, 12:37 AM
helpmeok helpmeok is offline
WMG Newcomer
 
Join Date: Jun 2008
Posts: 2
iTrader: (0)
helpmeok is on a distinguished road
Default Help php script access phpMySQL database

I have a php script that is that far away form accessing a phpMySQL database. Perhaps someone can look at it and tell me what to do next. pms.helpmeok.com
Reply With Quote
Sponsored Links
Register and sign in to hide this ad block

  #2 (permalink)  
Old 07-01-2008, 08:57 AM
Jacob's Avatar
Jacob Jacob is offline
WMG Deputy Sheriff
 
Join Date: Apr 2008
Posts: 158
iTrader: (0)
Jacob is on a distinguished road
Default

What?

Please post the PHP in the php tags so that we can see more accurately.

The link is being removed due to lack of post count.
Please be more specific, like what your error is, etc.

If you do not reply to this topic or edit your first post, the thread will be deleted.
__________________
Reply With Quote
  #3 (permalink)  
Old 07-01-2008, 02:05 PM
helpmeok helpmeok is offline
WMG Newcomer
 
Join Date: Jun 2008
Posts: 2
iTrader: (0)
helpmeok is on a distinguished road
Red face Getting error when running PHP Script

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'tothabr'@'localhost' (using password: YES) in /home/prisp/public_html/helpmeok/pms/dab.php on line 8
Unable to select database

you can run my program and see the code at pms.helpmeok.com
Reply With Quote
  #4 (permalink)  
Old 07-01-2008, 09:42 PM
Jacob's Avatar
Jacob Jacob is offline
WMG Deputy Sheriff
 
Join Date: Apr 2008
Posts: 158
iTrader: (0)
Jacob is on a distinguished road
Default

Have you made sure you've connected to your database?

I kind of can't look at your code, because I'm on my phone.
If you posted it here, I could help more.

Edit: oh, missed the error.
You got the connection to your db by the looks of it.
Make sure your username is in the form of
Code:
 cpaneluser_databaseuser
So if your cpanel log in was PMS, and your DB username was smp, then your log in would be...

Code:
PMS_smp
this doesn't go for your password.
Make sure you have written your db name i n the form of
Code:
 cpanelusername_dbname
For example, you cpanel log in is PMS, and your DB name is db, it'll appear

Code:
PMS_DB
Another thing, make sure you've added the username to the database with full permissions.
__________________

Last edited by Jacob : 07-01-2008 at 09:50 PM.
Reply With Quote
  #5 (permalink)  
Old 07-07-2008, 06:31 AM
HBZSoftware.com HBZSoftware.com is offline
WMG Newcomer
 
Join Date: Jul 2008
Posts: 2
iTrader: (0)
HBZSoftware.com is on a distinguished road
Default

You need to make sure your database user has permission to access your database, and make sure your MySQL username and password are the same as the ones you are using in your code.
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

All times are GMT. The time now is 11:35 AM.



Freelance Web Designers
Work At Home Forum
Ad Marketplace
Online Deals and Bargains
midPhase Web Hosting - $7.95/month - 500 GB B/W! Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO 3.0.0