MySQL Forums
Forum List  »  PHP

Re: I made it, but have other problem
Posted by: Yaniv Kri
Date: June 16, 2005 09:06AM

that's what I get:
'
Connected successfully '(echo output)

Warning: mysql_query() [function.mysql-query]: Access denied for user 'root'@'localhost' (using password: NO) in c:\Inetpub\wwwroot\targisikum\dbconnect.php on line 15

Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in c:\Inetpub\wwwroot\targisikum\dbconnect.php on line 15

Error Creation Table..... '(echo output)


when I'm connecting to DB in MYSQL, I use Password..


this the code for Table creation:

$sql= "CREATE DATABASE tik_tak";
if (! mysql_query($sql)) {
echo '<BR>Error Creation Table.....';
}
else {
echo 'Created';
}


Thanks again.

Options: ReplyQuote


Subject
Written By
Posted
June 16, 2005 04:11AM
Re: I made it, but have other problem
June 16, 2005 09:06AM


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.