MySQL Forums
Forum List  »  PHP

Re: PHP 4 and MySQL not talking to each other
Posted by: lrosete23
Date: March 25, 2006 11:18AM

i installed PHP 5.0.2, MySQL 4.0.21, Apache 2.0.52 in Windows XP

in MYSQL i can connect like:

mysql -h localhost -u root -p
password:12345

in PHP i can't connect with a script in APACHE\htdocs\mysqlconnect.php like:

<?php
$conn = mysql_connect("localhost", "root","12345");
echo $conn;
?>

when i run this in my browser, there's no connection id echoed.

do i need to edit something?

thanks.

Options: ReplyQuote


Subject
Written By
Posted
Re: PHP 4 and MySQL not talking to each other
March 25, 2006 11:18AM


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.