MySQL Forums
Forum List  »  PHP

PHP connection problem
Posted by: Intech
Date: January 04, 2006 06:09AM

I'm very new to php & mysql
I am trying to connecti mysql 5.0 through my php code
<body bgcolor="#99CC00">
<script language="php">
$connection = mysql_connect('localhost','root@localhost','pass');
if ($connection) {
$msg = "success!";
}
</script>
</body>

It gives the following error?
Fatal error: Call to undefined function mysql_connect()

Thanks in advance
Intech

Options: ReplyQuote


Subject
Written By
Posted
PHP connection problem
January 04, 2006 06:09AM
January 04, 2006 04:09PM
January 04, 2006 11:53PM
January 16, 2006 02:07AM
January 09, 2006 10:03PM
January 09, 2006 11:39PM
January 10, 2006 12:54AM
January 21, 2006 09:25AM
February 15, 2006 09:09AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.