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

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -