Get data in type from DB |
+-------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra | +-------+--------------+------+-----+---------+----------------+ | id | int(11) | NO | PRI | NULL | auto_increment | | term | varchar(255) | NO | | NULL | | | level | int(11) | NO | | NULL | | +-------+--------------+------+-----+---------+----------------+ Result array(4) { [0]=> array(3) { ["id"]=> string(1) "1" ["term"]=> string(11) "Mesoamerica" ["level"]=> string(1) "1" } [1]=> array(3) { ["id"]=> string(1) "2" ["term"]=> string(6) "Mexico" ["level"]=> string(1) "1" } [2]=> array(3) { ["id"]=> string(1) "3" ["term"]=> string(10) "indigenous" ["level"]=> string(1) "2" } [3]=> array(3) { ["id"]=> string(1) "4" ["term"]=> string(5) "ruins" ["level"]=> string(1) "2" } } but i need ID if integer instead |
Messages In This Thread |
Get data in type from DB - by motoroller - 01-26-2023, 01:27 PM
RE: Get data in type from DB - by kilishan - 01-26-2023, 03:03 PM
|