Importing data from non-wordpress mysql database

You have to create an import php file to get the Questions/Answers from a non-wordpress database and bring them into posts in wordpress. Question Table <?php /// non-wordpress database connection string here require(‘./wp-load.php’); $results = mysql_query(“SELECT * FROM questions”); while ($row = mysql_fetch_assoc($results)) {     $post_information = array( ‘post_title’ => wp_strip_all_tags( $row[‘question’] ), ‘post_content’ => $row[‘answer’], … Read more