i hav php5.2.9 +mysql5.1+apache2.2.6 installed on win xp .iam not able get php connect with mysql -
I have php5.2.9 + mysql5.1 + apache2.2.6 win installed on XP. I can not connect php with mysql here's the code.
& lt;? Php $ link = mysql_connect ('localhost', 'root', 'theism'); If (! $ Link) "unsuccessful" echo; The second "success" echo; Mysql_close (); ? & Gt; I do not think there is an error in the code. Phpinfo is showing mysql support so this installation problem can not be problem Iam can not get jst enabled. Whenever I run this script I get a blank screen. Please help me. New in IIM PHP
Let's tell mysql what error do you have ..
If (! $ Link) {echo "fail"; The echo and error message is: ';;; } And {resonant "success"; Mysql_close ($ link); }
Comments
Post a Comment