Jump to content

mysql_connect() doesn't work using php4 under linux


Recommended Posts

Here's the code:

 

<html>

<head>

</head>

<body>

<?php

echo '<p>Start';

$link = mysql_connect('localhost', 'root', 'root');

echo '<p>Connected';

mysql_close($link);

echo '<p>Closed';

?>

</body>

</html>

 

And here's the result:

 

Start

Fatal error: Call to undefined function: mysql_connect() in /var/www/apache2-default/php/connect.php on line 7

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.