MySQL Forums
Forum List  »  PHP

Re: Query doesn't work on Linux?
Posted by: Mlado Miletins
Date: September 27, 2016 02:56PM

Ok, but it works when i hardcode a particular single table.
Like so:
//$tableNames = [tableA, tableB, tableC, ...]
$sql = "SELECT col1, col2, col3, col4 FROM $tableA";

Then it works. It just doesn't work when i use "FROM variable_name" sintax.

Options: ReplyQuote


Subject
Written By
Posted
September 27, 2016 12:23PM
September 27, 2016 02:22PM
Re: Query doesn't work on Linux?
September 27, 2016 02:56PM
September 27, 2016 07:34PM
September 30, 2016 06:03PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.