![]() |
![]() |
![]()
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 |
|
|
![]() |
![]()
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 |
|
|
![]() ![]() |
![]() |
Aktualny czas: 16.10.2025 - 14:34 |