works in one not in another

Hi
i am new in php ,
i setup php apache and mysql in both home and office,i wrote a script at home that display data from mysql database and it works perfect,i brought the same script at work,it is not working,and my configuration at work is perfect because i can run other script,only the one i brought from home..please there is explication about this issue

Regards

Ahmed

asaidiAsked:
Who is Participating?
 
hernst42Connect With a Mentor Commented:
make sure you use <?php as opening tags and not only <? compare the output of phpinfo() on your servers, if they differ and which options are different
0
 
Ivo StoykovCommented:
Hi asaidi,

as a shot in the dark - check your paths login names/pass and credentials. Quote any errors you've get here and the code where you catch them

Regards

!i!
0
 
sakuya_suCommented:
copy the script you wrote please
0
 
dasmaerCommented:
agree... had to diagnose without seeing code.
0
 
NIPPLESCommented:
agreed plus one more shot in the dark - differing versions of mysql or php is very possible.  there could also be more underlying permissions problems especially if you are not the admin at your office.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.