Using $wpdb object in a widget

If you really just want a single row, use $wpdb->get_row($sql) instead. But your query looks funny…it looks like you’re trying to get the latest ‘client status’ for the user in which case your query should be: ‘SELECT status FROM Clients WHERE UserID = ‘.$current_user->ID.’ ORDER BY ID DESC LIMIT 1′. And if you do that, … Read more

Shared Members between two different wordpress installations with different databases

I had to do something similar. What you need to do first is in each of your config files define the table prefix … make sure that they are different. Example: WordPress installation 1: wp123_ WordPress installation 2: wp124_ Your first installation would be your main installation the one with the user table you want … Read more