|
the fuck are you storing db parameters in the session for?
jesus people, learn how to code.
your last example will work, if he uses mysql_connect and mysql_select_db with the appropriate parameters. it won't just work like magic otherwise. of course, unless there's some database abstraction library or related script being loaded that reads those variables like that (highly unlikely with that setup.)
__________________
php/mysql guru. hosting, coding, all that jazz.
|