Jump to content
xisto Community
Sign in to follow this  
elevenmil

Help With Php And Mysql Database Cant figure it out...

Recommended Posts

I've been asking for a lot of help lately cause I'm rather new to all of this stuff. I'm trying to encorporate log in and registrating pages to the website. I've looked at tutorials on the forum and others on the net. My biggest problems is connecting successfully to the databases I set up for the installation of this feature...I just can't seem to get it right. Does anyone know of database tutorials on the web or on the forum I may not have found? If someone would like to help and needs specific info on my problems I can detail it...I'm really getting frustrated...whatever anyone can do to help me would be great thanks...

Share this post


Link to post
Share on other sites

1) Check your codes .. you might have entered some wrong or extra characters ..

 

See these guides ...

http://de2.php.net/function.mysql-connect

http://www.tizag.com/mysqlTutorial/mysqlconnection.php

http://forums.xisto.com/no_longer_exists/

http://docs.activestate.com/

 

2) Maybe you have not setup your databases well...

 

See these guides ...

https://www.serve.com/FAQ/index.php?faq_option=faq&id=127

http://www.tizag.com/mysqlTutorial/mysqlsetup.php

http://forums.xisto.com/no_longer_exists/

 

 

You can also seach through Google for more help...

https://www.google.com/search?hl=en&lr=&q=mon+&btnG=Search

 

Hope all these helps ...

Share this post


Link to post
Share on other sites

If you're connnecting via FTP, then you chould be using the following connection code as follows:


<?php$dbhost = 'localhost';$dbuser = 'YOURUSERNAMEONCPANEL';$dbpass = 'THEPASSWORDYOUGAVEYOURDATABASE';$conn = mysql_connect($dbhost, $dbuser, $dbpass) or die                      ('Error connecting to mysql');$dbname = 'YOURDATABASENAME';mysql_select_db($dbname);?>

You only need to change what I put in all caps. Again, I'm not sure if this is the problem that you are having. Maybe if you could show me the error that you're getting, or the code that you are using.

-whyme

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.