View Single Post
  #1 (permalink)  
Old October 17th, 2007, 02:29 PM
oneillg oneillg is offline
Registered User
 
Join Date: Oct 2007
Location: , , .
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Database Connection

Hi all,
I am a C++ developer - new to PHP and MySql. Am using MySql on a Yahoo domain that supports MySql & PHP. Just trying the basics, but when I do the following:
<?php
// Connecting, selecting database
$link = mysql_connect('http://mydomain.com', 'myusername', 'mypassword'); ?>

it times out. Have tried substituting with the IP address, added port number - all with the same result. I expect (and hope) it is something easy.

Thanks for helping.

-Gabe