This is my Table structure,
CREATE TABLE `wp_business` (
`id` int(11) NOT NULL,
`8a` varchar(100) NOT NULL,
`address_1` varchar(1000) NOT NULL,
`city` varchar(250) NOT NULL,
`state` varchar(250) NOT NULL,
`zip_code` int(11) NOT NULL,
`tel` varchar(100) NOT NULL,
`fax` varchar(100) NOT NULL,
`email` varchar(1000) NOT NULL
) ENGINE=InnoDB DEFAULT CHARSET=latin1;
I trying to get data by select query,
SELECT * FROM wp_business;
I got the result but when I try to access the " 8a " column, getting an error.
$table_results[0]->8a;
Error:
[09-Dec-2019 16:38:20 UTC] PHP Parse error: syntax error, unexpected '8' (T_LNUMBER), expecting identifier (T_STRING) or variable (T_VARIABLE) or '{' or '$' in details.php on line 93