Re: Problem emblems connecting to Mysql using php3
When I uncomment extension=mysql.so in get the following error
Fatal error: Call to unsupported or undefined function mysql_connect() in
/var/www/douala1/www/man/body.php3 on line 22
When I comment extension=mysql it and put dl("mysql.so"); at the top of the
page I get this
Warning: Invalid library (maybe not a PHP3 library) 'mysql.so' in (null) on
line 20
Fatal error: Call to unsupported or undefined function mysql_connect() in
/var/www/douala1/www/man/body.php3 on line 22
What could I be doing wrong.
TIA
WFT
> WFT wrote:
>
> > I have. I even uncommented extension=mysql.so in php3.ini. I also
checked
> > that it was in the /usr/lib/mysql/apache directory by nothing happens.
> >
> > I put <?php dl("mysql.so") ?> at the begining of the page and get the
> > following error.
>
> You do not have to load mysql.so if it's uncommented in php3.ini. Try
this
> for your PHP page instead:
>
> <?
> mysql_connect("host", "username", "password") or
> die(mysql_error());
> echo "Ok it works!";
> ?>
>
> If you don't get the error "Call to undefined or unsupported function,
then
> your mysql support is working.
>
> Fraser
>
Reply to: