Problem with MySQL queries with PHP

Hi!,
I have, what I think it’s a pretty easy consult, because when I try to query a database using PHP files, I just don’t receive the results and I don’t get an error message either.
But, if I use this same PHP files on my Windows’ Appserv, the query returns the results immediately.
My obvious conclusion?, I haven’t enabled the MySQL modules on PHP, but I just can’t find them.
On Windows I just opened the “php.ini” file and removed the “;” from them, but on openSUSE it just don’t seem to work.

Any suggestions, please?

Thank you!!

Hi and welcome to the forum :slight_smile:
Is mysql running? Check with

rcmysql status

Yes, it is running, because I’m still doing this queries with openSUSE terminal.

Thanks!

I don’t like mysql is a tired programm for me!

Any suggestions?, nobody?

On Sat, 22 Jan 2011 06:06:03 +0530, sydmosh
<sydmosh@no-mx.forums.opensuse.org> wrote:

>
> Hi!,
> I have, what I think it’s a pretty easy consult, because when I try to
> query a database using PHP files, I just don’t receive the results and I
> don’t get an error message either.
> But, if I use this same PHP files on my Windows’ Appserv, the query
> returns the results immediately.
> My obvious conclusion?, I haven’t enabled the MySQL modules on PHP, but
> I just can’t find them.
> On Windows I just opened the “php.ini” file and removed the “;” from
> them, but on openSUSE it just don’t seem to work.
>
> Any suggestions, please?
>
> Thank you!!
>

are you sure that PHP is running and apache2 configured for it?

you have to have apache2-mod_php installed. if you’re not sure, see what
“rpm -q apache2-mod_php” returns.

apache also needs to be configured in order to process PHP files, in
/etc/sysconfig/apache2.

if you’re not sure if apache / PHP run properly, create a text file with
this content:


<?php print phpinfo(); ?>

place that file somewhere on your webserver, named info.php, and view it
(via HTTP). if that works, i.e., shows you a formatted page with
information about apache & PHP, you can find out which MySQL extensions
you have installed (if any).


phani.