PHP Script Forums » PHP Classes Support Forum

[closed]

where db.php?

(7 posts)

Tags:

Please support us by buying these products:

  1. User has not uploaded an avatar

    publisher
    Member

    hello!
    I congratulate you for your script Access_user Class, but a file is missing, I can not find it in the file db_config.php Online 2

    include_once($_SERVER['DOCUMENT_ROOT'].'/classes/db.php');

    where is db.php?

    I can not find it

    Posted 6 months ago #
  2. Olaf

    Olaf
    PHP Coder

    from the manual:

    Create a file called db.php (I place it into the folder classes which is one above the root), add this code with you database connection parameters:

    <?php
    define("DB_SERVER", "localhost");
    define("DB_NAME", "database");
    define ("DB_USER", "user");
    define ("DB_PASSWORD", "password");
    ?>
    Posted 6 months ago #
  3. User has not uploaded an avatar

    publisher
    Member

    thanks very much!

    Posted 5 months ago #
  4. User has not uploaded an avatar

    james_womack
    Member

    I was wondering what was going on here. Thanks for the help. This is the first pagination script that's worked for me. Great work.

    Posted 1 month ago #
  5. Olaf

    Olaf
    PHP Coder

    Quote from: james_womack
    "I was wondering what was going on here. Thanks for the help. This is the first pagination script that's worked for me. Great work."

    What is your question?

    Posted 1 month ago #
  6. User has not uploaded an avatar

    francescoflore
    Member

    Hi, I have downloaded your script and went through it. Although I can make it work to upload pics, I haven't managed to upload file name in specific fields of a table in database. Such as Image_1, Image_2 and so on. How can I upload a pic and make sure details of its location are stored in db?

    I am new with php and any help would be really greatly appreciated.
    Francesco

    Posted 6 days ago #
  7. Olaf

    Olaf
    PHP Coder

    please start a new thread and provide the code which doesn't work

    Posted 6 days ago #

RSS feed for this topic

Topic Closed

This topic has been closed to new replies.