Mysql_connect() Newbie needs help please

admin

Administrator
Staff member
Hi,

I started learning ASP but now I think PHP is the way to go.

my ISP supports PHP3 but thats all they know. I've set up php and mysql on my computer and got it working under Microsoft PWS (sorry to mention that).

Now I'm trying to get my test database working online.

I have no idea how to setup my msql_connect function. My ISP is LiNUX based. The online documentation means nothing to me.
$db = mysql_connect("localhost", "root");
doesn't work (I didn't expect it to)

I am familiar with the phpinfo(); command but I know nothing about server variables and the like, and so the output means little to me. Will any of the outputs from this help me with the following questions?

1. Do I have to put my database in a folder with special permissions, or can it be anywhere?
2. What syntax do I use for the msql_connect?

Sorry I'm such a lamer, but I really get stuck on these database connections don't know where to turn to.

Kind Regards,
Paul Leverenz
 
Back
Top