I've been having a problem dealing with accessing the MySQL "wordpress" database from a php script that is not loaded on-screen. My vision is that the displayed page (loaded in the wordpress content wrapper with the header) will make an AJAX request to an external DB interface script (also PHP) and that script will modify the database. So far, though, I haven't been able to get my external script to access the database. I've tried including the files associated with the $wpdb global class to no avail. I've more recently tried
and then attempted to create my own connection using mysql_connect(). This has also failed. I'm really not sure what to do in order to get the functionality I need.
Thanks for any help you can offer.