Get the correct table prefix
-
I found a useful function, but it has this dodgy bit of code:
... if ($blogs) { //we use blog id to loop post query foreach ($blogs as $blog) { $blogPostsTable = 'wp_'.$blog.'_posts'; $db_query = "SELECT $blogPostsTable.ID, ...
The ‘wp_’ obviously causes problems in sites that don’t use the default prefix.
How can I rewrite this?
Viewing 7 replies - 1 through 7 (of 7 total)
Viewing 7 replies - 1 through 7 (of 7 total)
- The topic ‘Get the correct table prefix’ is closed to new replies.