My web host has a server running apache which has php 3.0 support.
I have no access to the server so what I did was I extracted the mysql program into a directory on my pc and then ftp them to a cgi-bin on the webhost's apache server.
I am trying to connect to mysql on the apache server using instructions in php in a file, but message "parsing error" is shown.
How do I go about communicating with my mysql database on the apache server? I have read a few books and typed their commands in, but to no avail.
Here is one of them:
$conn = mysql_select_db("localhost","user", "password") or
die ("Could not select database");
PS. I am new to php.
Regards
I have no access to the server so what I did was I extracted the mysql program into a directory on my pc and then ftp them to a cgi-bin on the webhost's apache server.
I am trying to connect to mysql on the apache server using instructions in php in a file, but message "parsing error" is shown.
How do I go about communicating with my mysql database on the apache server? I have read a few books and typed their commands in, but to no avail.
Here is one of them:
$conn = mysql_select_db("localhost","user", "password") or
die ("Could not select database");
PS. I am new to php.
Regards