<?php include (\"constants.php\"); class MySQLDB { var $connection; //The MySQL database connection var $num_active_users; //Number of active users viewing site var $num_active_guests; //Number of active guests viewing site var $num_members; //Number of signed-up users /* Note: call getNumMembers() to access $num_members! */ /* Class constructor */ function MySQLDB() { /* Make connection to database */ /** * Only query database to find out number of members * when getNumMembers() is called for the first time, * until then, default value set. */ $this->num_members = -1; if (TRACK_VISITORS) { /* Calculate number of users at site */ $this->calcNumActiveUsers(); /* Calculate number of guests at site */ $this->calcNumActiveGuests(); } } /** * confirmUserPass - Checks whether or not the given * username is in the database, if so it checks if the * given password is the same password in the database * for that user. If the user doesn't exist or if the * passwords don't match up, it returns an error code * (1 or 2). On success it returns 0. */ function confirmUserPass($username, $password) { /* Add slashes if necessary (for query) */ { ?>
TO jest jakas 1/3 czesc tego pliku co z nim jets nie tak albo jka go uzupelnic.
Taki komunikat wysakakuje mi po wgraniu wszytskich plikow na sewer
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in /home/a8421709/public_html/includes/database.php on line 14
[/size][/font][/url]
Access denied for user 'roohttp://forum.php.pl/index.php?act=post&do=reply_post&f=27&t=98847Reply to this topict'@'localhost' (using password: YES)