[PHP] Re: mysql_db_name not working (solved)

2001-08-22 Thread Peter Ostry
For those who might run into the same problem in the future: If functions like "mysql_db_name" are not working and you get no mysqlerr, then most likely your PHP installation is messed up. Maybe you see the same behavior than we: phpinfo shows old and wrong stuff in the first section, i.e. an

[PHP] Re: mysql_db_name not working (followup)

2001-08-18 Thread Richard Lynch
> Does Apache with static compiled PHP not work on Solaris 8? > Since the pages behave really crazy, we think it has something to do > with our PHP. > Does someone have a similar installation - which versions? > Or any help? Ding! This just set off a ringer in my head. :-) Go back to your /usr/

[PHP] Re: mysql_db_name not working

2001-08-18 Thread Richard Lynch
> The command "mysql_db_name" is not working in our installation. > We get no error, but no database listing either if we use this command. > - > // This is the code which does NOT work: > $dbs = mysql_list_dbs(); ... or die(mysql_error()); > $num_dbs = mysql_numrows($dbs); > for($i=0; $i<$n