If you are getting an extra quote whenever you are using a single quote.
You should change this variable in your php.ini file.
; Use Sybase-style magic quotes (escape ‘ with ” instead of \’). magic_quotes_sybase = Off
User Name:
Password: