Merhaba;mysql hatası .
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 8
Warning: 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 8
Warning: mysql_query() [function.mysql-query]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:\xampp\htdocs\addressbook\manage-check.php on line 11
Warning: mysql_query() [function.mysql-query]: A link to the server could not be established in C:\xampp\htdocs\addressbook\manage-check.php on line 11
Query 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.
ODBC veritabanı ile MYSQL komutları kullanmaya çalışıyorsunuz. mevcut veritabanını MYSQL olarak dğeiştirirseniz çalışır.
yoksa Windows sunucuda php mi çalıştırıyorsunuz ?
evet windows xp üzerinde çalışıyor php de yeniyim nasıl yapabileceğimi anlatırsan sevinirim
open-db.php bu dosyada mysql_connect yoksa diğer kodlar çalışmaz. anladığım kadarıyla o dosada odbc_connect falan öyle birşeyler vardır.