I moved my live site to a localhost. “nebula_user_data” was a table in the live site database. Now it’s in a table in my new localhost database, and it isn’t being found.
Do I add the new database name to this line of code? and how?
$query = "UPDATE nebula_user_data SET $querycontruct WHERE username = '$username'";
$totalinfo = $wpdb->get_results( "SELECT userbio,userinfo,userevent FROM nebula_user_data WHERE username = '$username'", ARRAY_A);
The config.php is set up properly and everything else works fine.
- The topic ‘How to select a table in a new localhost database’ is closed to new replies.