Warning: mysql_real_escape_string() [
function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in
C:\xampp\htdocs\addressbook\manage-check.php on line
8Warning: mysql_real_escape_string() [
function.mysql-real-escape-string]: A link to the server could not be established in
C:\xampp\htdocs\addressbook\manage-check.php on line
8Warning: mysql_query() [
function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in
C:\xampp\htdocs\addressbook\manage-check.php on line
11Warning: mysql_query() [
function.mysql-query]: A link to the server could not be established in
C:\xampp\htdocs\addressbook\manage-check.php on line
11Query failed
kullanıcı adı ve şifreyi girince böyle bir hata veriyor.nasıl çözebilirim.manage-check.php içeriğide şu:
<?php
include_once("config.php");
include_once("open-db.php");
// username and password sent from signup form
$myusername=$_POST['myusername'];
$passwordHash = sha1(mysql_real_escape_string($_POST['mypassword']));
$sql="SELECT * FROM members WHERE username='$myusername' and password='$passwordHash'";
$rs = mysql_query($sql) or die ("Query failed");
// Mysql_num_row is counting table row
$numofrows = mysql_num_rows($rs);
// If result matched $myusername and $mypassword, table row must be 1 row
// Close DB connection
mysql_close($cid);
if($numofrows==1){
// Register $myusername, $mypassword and redirect to file success file
// Yes
session_register("myemail");
header("location:index2.php");
}
else {
// No
header("location:index.php?title=deny");
}
?>
yardımlarınız için şimdiden çok teşekkür edrim.
Zaman
2010-05-02 04:25:42Php Merhaba;mysql hatası