i am unable to connect to the database from my website. I have written a simple php form to enter the user details and after submitting the details it is not connecting to the host. I am using the wordpress to develop the site.help me please.
i am unable to connect to the database from my website. I have written a simple php form to enter the user details and after submitting the details it is not connecting to the host. I am using the wordpress to develop the site.help me please.
Cant really help without seeing the code. General tips would be:
1, Make sure that you are using the correct mysql host, username and password.
2. Make the code to echo error messages, like:
mysql_connect("localhost", "user", "pass") or die(mysql_error()); same with mysql_query() as well.
Design is not just what it looks like and feels like. Design is how it works.
Hostmonster? Get a Hostmonster Coupon or read Hostmonster Reviews
Alem's tips are quite useful. Be sure to use a mysql_error return if the connection or database selection fails.
Check here for a quick walk-through of connecting to a Mysql server and database:
http://bgallz.org/5/mysql-database-connect/
Post the code of what you've done, so we can take a look to see why it's not working.
A database connection is an installation in computer science that allows the client software to communicate with the database software on the server, either on the same machine or not. Connection is required to send commands and receive responses.
http://www.mindinventory.com/magento.php