Posts by Mateus Levi • 26 points
2 posts
-
0
votes2
answers347
viewsA: Dynamic redirection with PHP Switch Case
In the switch, it is necessary to finish each block case with a break. Otherwise, PHP will continue to execute the following statements. It would look like this: <?php switch($_GET['page']){ case…
-
1
votes1
answer393
viewsA: QLSTATE[42000]: Syntax error or access Violation: 1064 You have an error in your SQL syntax (PHP and Mysql)
Try writing table and column names between two crases ("`...`"), as below: $query = "INSERT INTO `{$this->prefix}order` (`order_date`, `order_time`, `order_code`, `reference`, `value_freight`,…