It will work. As long as you wrap the query between double quotes. If it does not, the error is somewhere else.
1 Like
yes you are correct!
OP, you are wasting your time. This approach is just plain wrong. PERIOD!
Focus your effort on Prepared Statements. You will do even better if you use PDO. Here is a tutorial to get you going. https://phpdelusions.net/pdo
2 Likes
This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.