When I try to connect to mysql from php I get this error: "Call to unsupported or undefined function mysql_connect()?
By Balu Prasad
Hi sir,
When I try to connect to mysql from php I get this error: "Call to unsupported or undefined function mysql_connect();
can you tell me the solution for this....
Teacher SiliconIndia replied to Balu Prasad Friday, November 27, 2009
Hi Balu Prasad,
Either you are missing mysql support in the php module or you need to load mysql dynamicly in your scripts by inserting:
dl("mysql.so"); (on unix)
dl("mysql.dll"); (on windows);
in the top of all the scripts that use mysql.
But it is recomended to compile php with mysql.