> test if you have a db connection in the function, if not, skip MRES and
> other mysql_ functions?

I thought that one could not test if a database connection is
established or not, this is the most relevant thing that I found while
googling that:

> In my opinion it's bad code to use a mysql_* function on a Oracle db (and
> vice versa) or on a string for that matter. It lies in the naming of the
> function what it's designed to do and work on. If you want a general
> function to sanitize an input, make your own function sanitize_input() based
> on ereg_* and/or str_replace and the likes.

All the connections are to MySQL databases, but to _different_ MySQL
databases on the same host.

Dotan Cohen


PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to