Field Data Binding settings Bind data to fields in PDOCrud

  
                                $pdocrud = new PDOCrud();
                                $pdocrud->fieldTypes("gender", "radio");//change gender to radio button
                                $pdocrud->fieldDataBinding("gender", array("male","female"), "", "","array");//add data binding using array
                                $pdocrud->fieldTypes("country", "select");//change type to select
                                $pdocrud->fieldDataBinding("country", "country", "country_id", "country_name", "db");//add data using another table name country
                                $pdocrud->fieldTypes("state", "select");//change state to select dropdown
                                $pdocrud->fieldDataBinding("state", array("Andhra Pradesh","Bihar","Patna","Gujarat","Madhya Pradesh"), "", "","array");//add data using array in select dropdown
                                echo $pdocrud->dbTable("users")->render();
                            

Change field type using PDOCrud

Users

Showing 1 to 10 of 65 entries

# User id First name Last name User name Password Email Phone Gender Birth date Hobbies Educational status Company name Address City State Country Zip code About yourself Actions
1 26 Jon Snow jon jonathaon jon@gmail.com 99009900 0 2016-11-11 Footbal, volleyball, dddd BE DDT USA newyork 0 3 452005 about desc.
2 30 yemqHDGbASghVu hcWntOcErdNAcklhyj QIuDjsqpMkLGUDESEm jgDUxaeJiZCkuaoVh fVZnYMKEtIa 0000-00-00 cheap viagra spdNvoiqwOxc YuvNreRnGhEvaa generic viagra online pharmacy cheap generic viagra xcREtODtJe ibFsTlIsQfaTwBh ATptExgQvFaVt mZozqIJVFug generic viagra online pharmacy cheap generic viagra
3 31 ==Mathewagomi Mathewagomi =nlorik@yahoo.com 0000-00-00
4 32 Mathewagomi =f84V@u7gvkC 0000-00-00
5 33 ==Jameskeync Jameskeync =silurio4@yandex.ru 0000-00-00
6 34 Jameskeync =8&t8p4FrdiN 0000-00-00
7 35 ==louis vuitton bags louis vuitton bags =bubylimauna@gmail.com 0000-00-00
8 36 louis vuitton bags =8hojl5N6nL 0000-00-00
9 37 ==louis vuitton bags louis vuitton bags =bubylimauna@gmail.com 0000-00-00 =[]=art =oakley sunglasses michael kors bags replica rolex rolex watches breitling watches replica watches
10 38 ==TheresablaGs TheresablaGs =elenka.rjnjnjwa4596@gmail.com 0000-00-00
# User id First name Last name User name Password Email Phone Gender Birth date Hobbies Educational status Company name Address City State Country Zip code About yourself Actions