Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Adding Two Databases to SQL Query

Options
  • 21-04-2015 5:38pm
    #1
    Registered Users Posts: 3,088 ✭✭✭


    Hi all,

    I am trying to add two tables from the same database into my website using the following code

    $SQL_Query = "SELECT * FROM public WHERE uname = '".$username."' AND id = $ID";

    I have another database named admin, were do I add this?


Comments

Advertisement