Pages

Wednesday, January 1, 2014

How to run MySQL query in php script when table name is a number

If you're using numbers as table names or if they start with a number, you need to escape them using backticks.

 Ex) Insert query

$sql1 = "INSERT INTO `9998` (forward_speed) VALUES (50);"