+ Reply to Thread
Results 1 to 7 of 7

Thread: My SQL and PHP

  1. #1
    gazzac is offline x10Hosting Member gazzac is an unknown quantity at this point
    Join Date
    Sep 2007
    Posts
    2

    My SQL and PHP

    Hello,

    i currently have a PHP script for a Staff login supplies info for staff and few other bits and pieces, i have had this made for me i know Very Little PHP.

    i was told i need to create a MYSQL database and connect the PHP Script to the MySQL

    1) ive created the My SQL
    2) i have no idea how to add the SQL to the PHP Script i no i need to add the following
    my username and password for login
    the database name
    i got told something about FTP - confused by that why would i need to upload via that when i can upload via the upload button and unzip it
    What sort of coding am i looking for examples would be helpful what would i need to change to connect it.

  2. #2
    lhyman's Avatar
    lhyman is offline x10 Sophmore lhyman is an unknown quantity at this point
    Join Date
    Jun 2009
    Posts
    198

    Re: My SQL and PHP

    you should really post your script here so we can have a look....
    My Name is Larry Hyman from Montreal. I fix computers on site, see my web site for more details:

    http://hyman.sytes.net

  3. #3
    veightar31 is offline x10Hosting Member veightar31 is an unknown quantity at this point
    Join Date
    Feb 2011
    Posts
    6

    Post Re: My SQL and PHP

    Yea I think a sample of the script or what the script is actually suppose to do can help.
    From what i read about your post, it seems you have already set up your database.
    Custom designed script should be accompanied by the real sql database to run at your database, and should contain a file which will connect to the databse.
    Often times, the connection script contains the instruction to connect to the database like for example
    <?php
    $db_hostname = ';
    $db_database = '';
    $db_username = '';
    $db_password = '';
    ?>
    or

    mysql_connect($db_hostname, $db_username, $db_password);
    No one can know exactly what you should be looking for in the connection script except someone with the script.

    For uploading through ftp, it might be due to the mode in which the script should be uploaded. Some scripts only work in a certain ftp mode. Just follow the instructions or else, you will end up with bugs all over

  4. #4
    tsniper is offline x10Hosting Member tsniper is an unknown quantity at this point
    Join Date
    Dec 2009
    Posts
    7

    Re: My SQL and PHP

    I have the same problem
    how do i will know these parameters?? or from any configuration ??
    $db_hostname = ';
    $db_database = '';
    $db_username = '';
    $db_password = '';

    any solution please ??
    Last edited by tsniper; 03-15-2011 at 05:19 AM.

  5. #5
    vv.bbcc19's Avatar
    vv.bbcc19 is offline Community Advocate vv.bbcc19 is just really nice
    Join Date
    Jun 2010
    Location
    India
    Posts
    1,505

    Re: My SQL and PHP

    Quote Originally Posted by gazzac View Post
    Hello,

    i currently have a PHP script for a Staff login supplies info for staff and few other bits and pieces, i have had this made for me i know Very Little PHP.

    i was told i need to create a MYSQL database and connect the PHP Script to the MySQL

    1) ive created the My SQL
    2) i have no idea how to add the SQL to the PHP Script i no i need to add the following
    my username and password for login
    the database name
    i got told something about FTP - confused by that why would i need to upload via that when i can upload via the upload button and unzip it
    What sort of coding am i looking for examples would be helpful what would i need to change to connect it.
    If you are using the script for employee management,
    you can have direct better free php software here.

    www.phptimeclock.com

    or just google phptimeclock and you are there.
    No problems with it whatsoever.
    We are running on the same.

    Regards,
    VVBB
    BCV | Community Support Representative
    █ x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  6. #6
    a307789742 is offline x10Hosting Member a307789742 is an unknown quantity at this point
    Join Date
    Mar 2011
    Posts
    2

    Smile Re: My SQL and PHP

    Okay can we see ur scripts?

  7. #7
    edyel190's Avatar
    edyel190 is offline x10Hosting Member edyel190 is an unknown quantity at this point
    Join Date
    Dec 2009
    Location
    Santa Marta, Colombia.
    Posts
    92

    Re: My SQL and PHP

    Maybe this can help you: http://www.php-mysql-tutorial.com/wi...-database.aspx

    Also would be good if we can take a look of your php script.

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers