Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.
Hi all, please see this major site announcement: https://www.boards.ie/discussion/2058427594/boards-ie-2026

PHP - Referencing MySQL db on my domain from localhost

  • 18-04-2008 07:32PM
    #1
    Registered Users, Registered Users 2 Posts: 1,653 ✭✭✭


    How do I reference my MySQL db on Blacknight from my local dev environment ?

    Assume my DB name is DBNAME and my domain ME.COM. Assume I've setup the access hosts.

    My current code is this. What do I change localhost to ?

    $link = mysql_connect("localhost", "USERNAME", "PASSWORD");

    Thanks


Comments

Advertisement
Advertisement