Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> mysql-real-escape-string: Access denied!
Haczyk67
post
Post #1





Grupa: Zarejestrowani
Postów: 56
Pomógł: 0
Dołączył: 15.02.2009

Ostrzeżenie: (0%)
-----


Witam Forumowiczów
Loguję się jako root do bazy danych i kiedy chcę zastoswać funkcję mysql_real_escape_string pokazują:

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: Access denied for user 'ODBC'@'localhost' (using password: NO) in C:/Rafcio/ss.php on line 35

Warning: mysql_real_escape_string() [function.mysql-real-escape-string]: A link to the server could not be established in C:/Rafcio/ss.php on line 35

Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
sowiq
post
Post #2





Grupa: Zarejestrowani
Postów: 1 890
Pomógł: 339
Dołączył: 14.12.2006
Skąd: Warszawa

Ostrzeżenie: (0%)
-----


Jeżeli używasz mysqli, to:
Kod
// $mysqli - obiekt MySQLi
$string = $mysqli->real_escape_string($string);

http://www.php.net/manual/en/mysqli.real-escape-string.php

Ten post edytował sowiq 2.03.2009, 09:38:49
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 16.10.2025 - 14:34