Web Hosting Vodahost    

Home Take The Royal Tour! Order Now Features Prices
Go Back   Web Hosting > VodaHost Web Hosting Support > mySQL & PHP

Notices

mySQL & PHP Discussions, information and help with mySQL and PHP.

Reply
 
LinkBack Thread Tools
  #1  
Old 03-12-2008, 07:14 PM
Second Lieutenant
 
Join Date: Feb 2008
Posts: 121
Default simple MYSQL connection

Hello
im trying to do a simple check up for a connection to my database through PHP script that looks like that :

<?php mysql_connect("74.86.118.24
", "user", "password") or die(mysql_error()); echo "Connected to MySQL<br />"; ?>

but it always answers :

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'dannydb '@'voda23.voda23.com' (using password: YES) in /home/rgajsgjb/public_html/test.php on line 5
Access denied for user 'dannydb '@'voda23.voda23.com' (using password: YES)

what didnt i do good ?

*the user that i interd is the one i created with ABVFP

my site is www.brasilwebdesign.com (the link in the center of the page)

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #2  
Old 03-12-2008, 07:18 PM
StrictlyBusiness's Avatar
Second Lieutenant
 
Join Date: Nov 2007
Location: Oklahoma
Posts: 143
Default Re: simple MYSQL connection

Quote:
Originally Posted by dannysheps********.com View Post
Hello
im trying to do a simple check up for a connection to my database through PHP script that looks like that :

<?php mysql_connect("74.86.118.24
", "user", "password") or die(mysql_error()); echo "Connected to MySQL<br />"; ?>

but it always answers :

Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'dannydb '@'voda23.voda23.com' (using password: YES) in /home/rgajsgjb/public_html/test.php on line 5
Access denied for user 'dannydb '@'voda23.voda23.com' (using password: YES)

what didnt i do good ?

*the user that i interd is the one i created with ABVFP

my site is www.brasilwebdesign.com (the link in the center of the page)

thanks
Hi Danny,
I am not sure why you would want to access your database from your page. Will you be a little more specific as to what you are trying to accomplish please?
__________________
Diane
www.smallbizunite.net

At first you don't succeed, pick yourself up and try again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #3  
Old 03-12-2008, 07:22 PM
Second Lieutenant
 
Join Date: Feb 2008
Posts: 121
Default Re: simple MYSQL connection

in general
can i access my database with a script like that at all ?

or i can get access only from the Form way
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #4  
Old 03-12-2008, 07:24 PM
Second Lieutenant
 
Join Date: Feb 2008
Posts: 121
Default Re: simple MYSQL connection

hi
im trying to learn how to create a MYSQL PHP site
that i can let people post messages on the site , it will be more of a donate stuff site

so im trying to make the first step of quyering data from the database by connectiong to mysql
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #5  
Old 03-12-2008, 07:26 PM
StrictlyBusiness's Avatar
Second Lieutenant
 
Join Date: Nov 2007
Location: Oklahoma
Posts: 143
Default Re: simple MYSQL connection

Quote:
Originally Posted by dannysheps********.com View Post
in general
can i access my database with a script like that at all ?

or i can get access only from the Form way
I am sure if you know how to set up scripts it may be possible but don't quote me on that.

You can always access your phpmyadmin on cpanel and it will be safer there than to try to access your database from your website
__________________
Diane
www.smallbizunite.net

At first you don't succeed, pick yourself up and try again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #6  
Old 03-12-2008, 07:29 PM
StrictlyBusiness's Avatar
Second Lieutenant
 
Join Date: Nov 2007
Location: Oklahoma
Posts: 143
Default Re: simple MYSQL connection

Quote:
Originally Posted by dannysheps********.com View Post
hi
im trying to learn how to create a MYSQL PHP site
that i can let people post messages on the site , it will be more of a donate stuff site

so im trying to make the first step of quyering data from the database by connectiong to mysql

Ok I understand. If you said you already set up a database using ABVFP then that is good enough right there. NavalDesign is the best to talk to about that.
__________________
Diane
www.smallbizunite.net

At first you don't succeed, pick yourself up and try again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #7  
Old 03-12-2008, 07:31 PM
Second Lieutenant
 
Join Date: Feb 2008
Posts: 121
Default Re: simple MYSQL connection

is there a way to contact navaldesign ?

in general what is the password and user name i should inter ?

*i have one that i created for the ABVFP and the regular user name for the CP
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #8  
Old 03-12-2008, 07:33 PM
StrictlyBusiness's Avatar
Second Lieutenant
 
Join Date: Nov 2007
Location: Oklahoma
Posts: 143
Default Re: simple MYSQL connection

Quote:
Originally Posted by dannysheps********.com View Post
is there a way to contact navaldesign ?

in general what is the password and user name i should inter ?

*i have one that i created for the ABVFP and the regular user name for the CP
Yes there is. You may go to his website at http://www.dbtechnosystems.com

You may also get your answers right there on his site. Contact him from there
__________________
Diane
www.smallbizunite.net

At first you don't succeed, pick yourself up and try again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #9  
Old 03-12-2008, 07:36 PM
StrictlyBusiness's Avatar
Second Lieutenant
 
Join Date: Nov 2007
Location: Oklahoma
Posts: 143
Default Re: simple MYSQL connection

The password and username is up to you. I couldn't answer that. When you go to cpanel and go to mysql database that part is left up to you what name you want your database to be as well as your username and password.
__________________
Diane
www.smallbizunite.net

At first you don't succeed, pick yourself up and try again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #10  
Old 03-12-2008, 07:39 PM
Second Lieutenant
 
Join Date: Feb 2008
Posts: 121
Default Re: simple MYSQL connection

10x
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #11  
Old 03-12-2008, 07:51 PM
StrictlyBusiness's Avatar
Second Lieutenant
 
Join Date: Nov 2007
Location: Oklahoma
Posts: 143
Default Re: simple MYSQL connection

Quote:
Originally Posted by dannysheps********.com View Post
10x
Is that how many times you've tried? Don't worry NavalDesign will get you in the right direction. Also check out this thread as to it may help you as well.

http://www.vodahost.com/vodatalk/mys...ating+database
__________________
Diane
www.smallbizunite.net

At first you don't succeed, pick yourself up and try again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #12  
Old 03-12-2008, 08:00 PM
Second Lieutenant
 
Join Date: Feb 2008
Posts: 121
Default Re: simple MYSQL connection

hehehe

10=than x=ks

==

thanks
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #13  
Old 03-12-2008, 08:11 PM
StrictlyBusiness's Avatar
Second Lieutenant
 
Join Date: Nov 2007
Location: Oklahoma
Posts: 143
Default Re: simple MYSQL connection

Quote:
Originally Posted by dannysheps********.com View Post
hehehe

10=than x=ks

==

thanks

lol gotcha, you are welcome. Did that thread help you?
__________________
Diane
www.smallbizunite.net

At first you don't succeed, pick yourself up and try again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #14  
Old 03-12-2008, 08:21 PM
Second Lieutenant
 
Join Date: Feb 2008
Posts: 121
Default Re: simple MYSQL connection

no man
its not realy the same matter...

my thing is just to get a simple connection to the MYSQL thats it....nothing more

but seems to be impossible yet
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #15  
Old 03-12-2008, 08:24 PM
StrictlyBusiness's Avatar
Second Lieutenant
 
Join Date: Nov 2007
Location: Oklahoma
Posts: 143
Default Re: simple MYSQL connection

Actually it's WO man lol but sorry if that wasn't any help to you
__________________
Diane
www.smallbizunite.net

At first you don't succeed, pick yourself up and try again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #16  
Old 03-12-2008, 08:32 PM
Second Lieutenant
 
Join Date: Feb 2008
Posts: 121
Default Re: simple MYSQL connection

:)
sorry about that StrictlyBusiness
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #17  
Old 03-12-2008, 08:41 PM
StrictlyBusiness's Avatar
Second Lieutenant
 
Join Date: Nov 2007
Location: Oklahoma
Posts: 143
Default Re: simple MYSQL connection

Quote:
Originally Posted by dannysheps********.com View Post
:)
sorry about that StrictlyBusiness
lol no worries Danny. I don't actually have a very femenine name lol. I am just sorry that I wasn't able to help you but I hope you hear from Naval soon or someone on the forum who knows how to assist you further.
__________________
Diane
www.smallbizunite.net

At first you don't succeed, pick yourself up and try again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #18  
Old 03-12-2008, 09:06 PM
Second Lieutenant
 
Join Date: Feb 2008
Posts: 121
Default Re: simple MYSQL connection

i went to the link of naval's site and tried to submit a support form but they want there any fields that i realy dont know where to find that information

why they make it so dificult
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
  #19  
Old 03-12-2008, 09:15 PM
StrictlyBusiness's Avatar
Second Lieutenant
 
Join Date: Nov 2007
Location: Oklahoma
Posts: 143
Default Re: simple MYSQL connection

Quote:
Originally Posted by dannysheps********.com View Post
i went to the link of naval's site and tried to submit a support form but they want there any fields that i realy dont know where to find that information

why they make it so dificult
Hi Danny,
There contact form isn't difficult at all. Go to the contact link. You provide him the information that is required "You will know which one is required by the red astericks" then let him know how urgent it is in priority then "How do you want to be contacted via email, phone, etc. You heard about him from VH Forum and then enter the verification letters and numbers and that is it. You don't have to worry about the upload part unless there is something you want him to look at.
__________________
Diane
www.smallbizunite.net

At first you don't succeed, pick yourself up and try again!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!