Click to See Complete Forum and Search --> : integrate mysql into php


jimmytanss
12-13-2002, 05:01 AM
i am a Linux newbie, i am in the middle of getting mysql to work in PHP, i am able to view a php output file from phpinfo();
but when a php file involve a link to database, it display the source code(not all) on broswer, what is that so?please advise.
please explain what file should edit and what editing must be done.
i have RedHat 8.0
httpd 2.0.40-11
PHP 4.2.2-8.0.5
MySQL 3.23.54-1

planetsim
12-13-2002, 07:03 AM
What is the exact error
if there is no error and you have mysql code there..

before one of there ";" without the quotes do this

or die(mysql_error())

example

mysql_connect("host","user","pass")or die(mysql_error());

if you get something like no database seleted or something else. It could come down to Mysql Not Installed Properly Or not even started