Page 1 of 1

Mysql connection problem. (Solved)

PostPosted: 02. August 2010 08:14
by Sumeet
I have searched the whole forum & searched the whole internet -> whole day ->finally with no success -> So I have posted my problem here.Please help me out

I don't know there's an odd problem with me .
I have installed xampp successfully.
I can run php scripts successfully.
I can run html successfully.

But when it comes for mysql database integration ,don't know why I don't have any effect on mysql functions and connection.
Checkout my screenshot here.
All mysql queries are just displaying in my browser without execution or any effect.
I have some screenshots below so that you all can understand exactly whats fault


This screenshot is from my server
Removed

The same screenshot of above script from another hosting
Removed

Onather screenshot from my server
Removed

The same above screenshot in normal hosting
Removed


I am 100% sure that my database , username and password are perfect ,I don't know where the fault lies.
And assume even if my username and passwords are not correct than atleast it should execute the mysql functions&queries....but all mysql functions , scripts are just displaying in my browser without any effect...

Please help me out...
Also there are no faults in the scripts ...I tested same scripts on other hosting..they are working perfect....but not on my localhost..
I will be very grateful if anyone could help me out from this.
thank you.


-Sumeet

Re: Mysql connection problem. (please help me out)

PostPosted: 02. August 2010 08:21
by Altrea
Sumeet wrote:Also there are no faults in the scripts ...I tested same scripts on other hosting..they are working perfect....but not on my localhost..

Thats no guarantee for for correct code!

Maybe it's a short_open_tags issue.
Try the board search for this keyword

Re: Mysql connection problem. (please help me out)

PostPosted: 02. August 2010 08:25
by Sumeet
Altrea wrote:Maybe a short_open_tags issue.
Try the board search for this keyword


I have searched the whole forum ...before posting and finally came to the situation to post.
And if you don't matter please give me any links if you know which lead to my problem.Because I have searched already I didn't get anything related to my problem.
Thanks for replying.
-Sumeet

Re: Mysql connection problem. (please help me out)

PostPosted: 02. August 2010 08:27
by Altrea
Sumeet wrote:I have searched the whole forum ...before posting and finally came to the situation to post.

Try "short_open_tags" in the board search. I guarantee, there will be >15 posts relating to the topic!

Re: Mysql connection problem. (please help me out)

PostPosted: 02. August 2010 08:49
by Sumeet
Altrea wrote:
Sumeet wrote:I have searched the whole forum ...before posting and finally came to the situation to post.

Try "short_open_tags" in the board search. I guarantee, there will be >15 posts relating to the topic!


@ Altrea
Thank you for your fast response,
Really it was just a silly problem...Now its perfect
Thank you again.

-Sumeet