Hi everyone,
I'm trying to query a recruitment website database to find the live jobs (from table "ads_live"), archived jobs (from table "ads_not_live") and payment transactions (from table "transactions") for an account's username (stored in $_SESSION[account_username]).
$sql = "SELECT * FROM ads_live, ads_not_live, transactions WHERE ad_account_username = '$_SESSION[account_username]'";
The above code fails and i can only google information on seeing if columns in different tables equal each other, rather than a variable.
Thanks for your help!
Stu