#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Dec 2013
    Posts
    4
    Rep Power
    0

    Question Linking php with mysql database


    Hello,
    Am working on a project that require to build a web site, and among all I learn in my one semester web programming classs I have to use them in my final project. Ranging from; html, css,php, form, javascript, to mysql.
    Well the problem is, how will I link my mysql database to my php server?
    Am just a biginner in web so am stock, and ideas code me with it.
    Thanks
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,959
    Rep Power
    1016
    Hi,

    you need to get familiar with looking up information yourself. There won't always be somebody to premasticate it for you.

    How to (properly) access a MySQL database with PHP
    The 6 worst sins of security ē How to (properly) access a MySQL database with PHP

    Why canít I use certain words like "drop" as part of my Security Question answers?
    There are certain words used by hackers to try to gain access to systems and manipulate data; therefore, the following words are restricted: "select," "delete," "update," "insert," "drop" and "null".
  4. #3
  5. No Profile Picture
    Super Moderator
    Devshed Beginner (1000 - 1499 posts)

    Join Date
    Jun 2009
    Location
    Hartford, WI
    Posts
    1,332
    Rep Power
    24
    Originally Posted by sedat
    how will I link my mysql database to my php server?
    Was just wondering based on wording... Is your project all on one server? Or do you have some at home, some at school? If different, accessing the MySQL server will need more a defined address than a local one. And I'm assuming a school will offer remote connections to a point, but as a note, not all server will, as a step of security.
    He who knows not that he knows not is a fool, ignore him. He who knows that he knows not is ignorant, teach him. He who knows not that he knows is asleep, awaken him. He who knows that he knows is a leader, follow him.

IMN logo majestic logo threadwatch logo seochat tools logo