How to select a table in a new localhost database (1 post)

  1. albertobevacqua
    Posted 4 years ago #

    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.
    Thank you.

Topic Closed

This topic has been closed to new replies.

About this Topic

  • RSS feed for this topic
  • Started 4 years ago by albertobevacqua
  • This topic is not resolved
  • WordPress version: 3.3.1