Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mysql_connect()

Status
Not open for further replies.

semtex

IS-IT--Management
Sep 3, 2002
2
GB
When I use this for example:
$link = mysql_connect(localhost, 'login', 'password')
or die('connection failed');

Nothing seems to work...
I use a Win32(98) Apache server and php4.0.0 win32 server with mysql dll's loaded, my mysql server is okay and I installed myODBC, but when I try the example on the top I get this in my source:
&quot;<html>
<body>&quot;

And then it's broken off where the <?php ?> script starts...

Please can someone help me

 
put PHP instructions in .php files in your home servers directory. The HTML will be genearted from PHP output functions Ion Filipski
1c.bmp


filipski@excite.com
 
You need to make sure that httpd.conf is configured correctly for PHP (mime types, directory index, etc). Also, make sure Apache is loading the PHP module.

Then check your php.ini file to make sure that you have mysql configured and enabled.

Remember, MySQL support is automatically included with PHP in the Win32 version, so all you have to do besides the stuff above is download MySQL.

Get back with us if you still have problems.

Chad. ICQ: 54380631
online.dll
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top