Fix PHP error “No Database selected”

Hello everyone, I have a local website (on my PC) and when I want to upload it to the hosting I contracted and test it, it marks me “No database selected”.

My application is made in Dreamweaver and the connecting PHP file is in this format. I have searched several sites on the net and I can’t find an answer, so I ask for your help. The code for the connection file is like this:

conn.php file

Search page “search.php”

I have tried with mysql_pconnect() and it doesn’t work either.

Has something like this happened to anyone?

CHEERS

See also  Validation of a form with Javascript
Loading Facebook Comments ...
Loading Disqus Comments ...