Hello.
I'm just starting to learn CodeIgniter.
I have a question.
The database created a table of countries and fields.
PHP Code:
CREATE TABLE IF NOT EXISTS `country` (
`country_id` int(11) NOT NULL,
`name` varchar(128) NOT NULL,
`iso_code_2` varchar(2) NOT NULL,
`iso_code_3` varchar(3) NOT NULL,
`address_format` text NOT NULL,
`postcode_required` tinyint(1) NOT NULL,
`status` tinyint(1) NOT NULL DEFAULT '1'
) ENGINE=MyISAM AUTO_INCREMENT=258 DEFAULT CHARSET=utf8;
At the moment I have on the page when registering the user, I need to write the country in the text field.
PHP Code:
<input class="form-control required" name="country" type="text" placeholder="<?php echo translate('country');?>" data-toggle="tooltip" title="<?php echo translate('country');?>">
I want the country instead of the field:
Select the select from the bats from the table country.
How to do it?
Help me please.