insert into database from Joomla form fields

后端 未结 3 530
盖世英雄少女心
盖世英雄少女心 2021-02-05 13:24

I am beginner to Joomla! development and have created a very simple module.

How do I create a form with 3 text fields and then save the entered values into a database ta

3条回答
  •  庸人自扰
    2021-02-05 14:17

    You may run a custom query to get a result on tmpl file which is simple

    setQuery("SELECT machine_id FROM j25_machinefinder_products WHERE category = '$category'");
    // Load the row.
    $result = $db->loadRowList();
    
    //your result will return here
    print_r($result);
    
    
    
        }
    
     ?>
    

提交回复
热议问题