I have installed XAMPP which as you know automatically installs Apache , PHP and MySQL , that's the reason why I don't know my user name and password when I am trying to conect the database using PHP file. I have written this PHP function which has to connect to the database:
http://postimg.org/image/wgq35omfd/
I have entered phpMyAdmin and have seen the users and I see one named root , I know the server is called localhost but I don't know the pasword and I can't pass the correct data to the database connect function mysql_pconnect("localhost" , "root", pass ) and that's why my function always returns false. How can I check which are the username and the pasword to pass it to the mysql_pconnect function.