i am trying to insert into my sql table a combination of php variables and 1 row data from another table. ive found examples that are similar but none that have this combination.
OTHERTABLE.liveDate would be where i need the single record from, but i would need to add a condition such as WHERE id='1' from OTHERTABLE
'$navid', '$loginid', '$total', '$where' are not from OTHERTABLE
INSERT INTO myTable (`navid`,`loginid`, `pageDisplayNum`, `whereFrom`, `liveDate`)
VALUES ('$navid', '$loginid', '$total', '$where', 'OTHERTABLE.liveDate')