MySQL Forums
Forum List  »  Newbie

Re: Access denied for user 'ODBC'@'localhost'
Posted by: Tor Saetre
Date: December 06, 2004 11:16AM

Here you can find more information:
http://no2.php.net/manual/en/function.mysqli-connect.php

Example:
<?php
$link = mysqli_connect("localhost", "my_user", "my_password", "world");

/* check connection */
if (!$link) {
printf("Connect failed: %s\n", mysqli_connect_error());
exit();
}

printf("Host information: %s\n", mysqli_get_host_info($link));

/* close connection */
mysqli_close($link);
?>

Options: ReplyQuote


Subject
Written By
Posted
Re: Access denied for user 'ODBC'@'localhost'
December 06, 2004 11:16AM


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.