Avatar

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

gul123

About

Username
gul123
Joined
Visits
12
Last Active
Roles
Member

Comments

  • hi @admin Fatal error: Call to undefined function fuel_nav() in...suddenly i got this error dont know how this happened and how to solve it please help me kind regards
  • One thing more i am using this part of code to get lat and long at run time and assigning them to the address i have round about one million addressses but the google map api has limit upto 2500 how i can resolve it see the code below foreach($data …
  • i think it will be more better if there is a clear cut tutorial example for front end ...the example for contact page for front end is only related to email not values to database so think a registeration system for front end exapmle having view mod…
  • facing lot of issues using this method errors on db ...not getting main layout so i switch back to my way ....now i have only issue how i can stop submission on page refresh and how can i use locations module categories here in form as dropdown and …
  • ok This is location model in controller <?php class location_model extends CI_Model { public $required = array('city'); function __construct() { parent::__construct(); //table name // load Form_builder; $this->l…
  • and how i will show the form using above way as u have mentioned not i can use echo $form...
  • thanks i appreciate for your suggestion and thanks as well but i faced a problem when i put the form in controller and have some query for a field like dropdown than its creating issue cant call it from model as well not working in controller if u s…
  • Good morning ...My question is that when i refresh the page,the empty form or last submitted values again submits in the database i mean it is submitted to the database on refreshing the page.....and second thing i have put the form in model becaus…
  • <?php class location_model extends CI_Model { public $foreign_keys = array('category_id' => array(FUEL_FOLDER => 'fuel_categories_model', 'where' => array('context' => 'locations'))); // map foreign keys to table models public…
  • this part is not working i want to check/test it as u guided $location= $this->input->post('location'); echo $location; its not showing $location value
  • @onegun one thing i have to put the query to insert there if i am not wrong if($_POST){ $location= $this->input->post('locations'); echo $location; //then do your own database checking mysql_query("INSERT INTO locations.............");
  • thats great let me check it
  • one thing more which will be very best for maps ...what if i want to export a data of one million records in database ...no doubt it will go to the relevant columns like phone,city address etc but it will not have their lat and long ..so i have an i…
  • i have locations form in admin to add locations for frond end how i can do this please guide me.i just want the user can only enter locations from there i mean front end
  • i want to create same form like i have locations form in admin to add locations for frond end how i can do this please guide me
  • thanks for your help..... Well i did ask some queries from admin. waiting for his kind reply
  • okz This is controller in application/controllers/categories ?php Class Categories extends CI_Controller{ function Categories(){ parent::__construct(); $this->load->database();//for you talk to database } function view(){ $vars['category']=arr…
  • still same Message: Undefined index: category
  • solved the above issue and now giving .... A PHP Error was encountered Severity: Notice Message: Undefined variable: category Filename: core/Loader.php(332) : eval()'d code Line Number: 3 ....@onegun
  • Parse error: syntax error, unexpected T_STRING\fuel\application\controllers\categories.php on line 2 when i put as u directed in view that is categories.php i have <?php foreach($category as $c) { echo $c; } ?>
  • okz let me try
  • how i can do things in view ,how to call or show something ...@onegun
  • i have read your this tutorial but there is no clear where to create controller and where to create view and how to call form in view ...my bad luck not getting it
  • Thanks a lot yes its done now.... now i want to use same this type of form to be use on front end so user can add locations from front end that form will have captcha as well to avoid spam....how i can do that please guide me Bundle of Thanks for y…
  • Yes i got it ......and done it Thanks a lot......One thing more is it true if i want to change the fields order in form i have to change the order in table in mysql if not then how i can do this and second thing i am using categories in location for…
  • please guide me how to create dropdown in location creation form e.g like i want to show all cities of a specific country in dropdown and i want to populate dropdown from database...plus how can i change the orders of the fields in the form
  • okz.....
  • and now when i select the dropdown for categories near search field it says ............. A Database Error Occurred Error Number: 1054 Unknown column 'locations.category' in 'where clause'
  • yes i got it ....now showing successfully......and now i want to add some fields e.g dropdown i know about textfield but how dropdown......
  • function find_location($where) { $this->db->select('locations.*, '.$this->_tables['fuel_categories'].'.slug as category, '.$this->_tables['fuel_categories'].'.slug as category_slug'); $data = $this->locations_model->find_all_a…