Announcement

Collapse
No announcement yet.

How To: Connect MySQL database through PHP connection string

Collapse

Ads on showthread pages

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • How To: Connect MySQL database through PHP connection string

    WordPress Hosting on SSD Servers
    Hello All,

    Below mentioned is the connection string through which one can connect MySQL database with PHP code:

    ----------------------------------------------------
    <?
    // connect to the database
    mysql_connect ('server name', 'username', 'password');
    mysql_select_db ('database name');
    ?>
    Connected successfully
    ----------------------------------------------------

    Thanks,

    Shane G.
    AccuWebHosting.Com
Working...
X
Sign up for a News Letter Click here to sign up