Results 1 to 3 of 3
  1. #1
    Join Date
    Aug 2006
    Posts
    1

    Unanswered: cannot add to the database (was "i need help with database")

    i have construct a php file which look like a form for customer to enter their details now i have manage to connect to the server and database
    one issue i cannot add to the database
    can some one help me please thank you
    Alex

  2. #2
    Join Date
    Jan 2006
    Posts
    28
    Who ever you have connected to the database with through php must have update and write permissions on the particular database you are trying to access.

  3. #3
    Join Date
    May 2006
    Posts
    24
    What is the error you get?
    Maybe you haven't selected a database to use.
    You have to have both:

    Code:
    $link = mysql_connect($host, $user, $pass);
    
    and 
    
    mysql_select_db($dbname, $link);

Posting Permissions

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