1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

how to create connection with sql database using .php

Discussion in 'PHP' started by westhaven, May 29, 2005.

  1. #1
    how to create connection with sql database using .php
    i am planning to make a directory site and i have downloaded the code from http://www.biz-directory.org/directory_script.php
    but i don know how create database in sql and how i will integrate the code given by thm with sql
    Any suggestions
    SEMrush
     
    westhaven, May 29, 2005 IP
    SEMrush
  2. flawebworks

    flawebworks Tech Services

    Messages:
    991
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    78
    #2
    Do you have cpanel? If you do; then you can login to cpanel; go to server/mysql databases and create one there, taking note of db names, logins, and passwords. Then; you put these dbnames,logins and passwords in a config file of the software you are using.

    If you don't have cpanel; check with your host. They should have another control panel/mysql solution for you.

    You can also download phpmyadmin and create the database that way.
     
    flawebworks, May 29, 2005 IP
  3. ashiezai

    ashiezai Peon

    Messages:
    927
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    0
    #3
    i think he is asking how to initiate a connection with mysql database with .php but not creating it .. i think the script is fully automated .. you do not need to do anything to start a connection with mysql with biz directory .. just read the readme file and follow it .. and off you go :)

    However, if you still want to know how to create a mysql connection using php .. here is a good resource:
    http://www.sitepoint.com/article/publishing-mysql-data-web
     
    ashiezai, May 29, 2005 IP
  4. westhaven

    westhaven Well-Known Member

    Messages:
    3,943
    Likes Received:
    453
    Best Answers:
    0
    Trophy Points:
    195
    #4
    yup i have cpanel and thanks for your suggestions guys
     
    westhaven, May 29, 2005 IP