Results 1 to 5 of 5

Thread: database connection

  1. #1
    Join Date
    Jun 2012
    Posts
    1

    Default database connection

    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.

  2. #2

    Default

    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

  3. #3
    Join Date
    Jun 2012
    Posts
    1

    Default

    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/

  4. #4
    Join Date
    Sep 2007
    Location
    Lagos, Nigeria
    Posts
    194

  5. #5
    Join Date
    Jun 2012
    Posts
    3

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •