I have php code running fine from the server. but if i use any mysql functions e.g.


, the server does not render the page. it keeps on "waiting for localhost...". what could be the problem.

Member Avatar

Is your mysql server running?

First, check your mysql server is running or not like @ardav mentioned?
Second, how are you using mysql_connect() function in your php? mysql_connect() needs three arguments (host, username, password).

Check the above facts and post again if your problem still keep going.

Thanks guys, i found the problem. Mysql was running but the port i used to connect to it was different. so the port could not respond to a mysql request since it's not for mysql