Answer the question
In order to leave comments, you need to log in
How to remove the prefix of the connected table through db_select?
Good morning gurus!
Actually a question.
$query = db_select('user_discounts', 'u');
$query->fields('user_discounts', array('CardNum'));
$result = $query->execute();
PDOException: SQLSTATE[42S02]: Base table or view not found: 1146 Table namedatabase.prefix_user_discounts ' doesn't exist
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question