Populate data in another field on change on data in some field up using PDOCrud
SQLSTATE[42S02]: Base table or view not found: 1146 Table 'digjainwi_allsanghinfodev.ordertable' doesn't exist
$pdocrud = new PDOCrud(); $pdocrud->fieldTypes("billing_country", "select"); //change type to select $pdocrud->fieldDataBinding("billing_country", "country", "country_id", "country_name", "db"); //load select data $pdocrud->fieldTypes("billing_state", "select"); //change type to select $pdocrud->fieldDataBinding("billing_state", "state", "state_id", "state_name", "db"); //load select data $pdocrud->fieldDependent("billing_state", "billing_country", "country_id"); //now on change of country it will change state $pdocrud->fieldDisplayOrder(array("first_name", "last_name", "billing_country", "billing_state"));//change display order echo $pdocrud->dbTable("ordertable")->render();