I am trying to run a mysqli query to retrieve a single result, but it requires me to create an object that contains a dash in the name, so it won't work.
$style_name = $db2->query("SELECT ModelDesc-ENU FROM tlkpModel WHERE ModelID = '$style' LIMIT 1")->fetch_object()->ModelDesc-ENU;
Notice the part fetch_object()->ModelDesc-ENU;
- It's an invalid object name. How do I get around this?