1 Methods of coherent operation: the object $info=m ("info") that makes the model of an info table; Using the M method $info->select (); The Select method returns all data $info->where ("Code= ' P001"), and/or add conditions, $info->table ("Nation")->select ();//tables to toggle Queries The object of the info table can be implemented by the Table Method Nation table $info->field ("code")->select; Check the specified field $info->distinct (true)->select (); Go to heavy $attr = $car->find (); According to the primary key to take a piece of data, do not write the primary key value by default returns the first $attr = $car->select ("c001,c002"); Returns a two-dimensional array based on the primary key value query 2. Automatic collection of form $info=m ("info"); Model Object $info->create (); Automatically collects the form and creates data $info->add (); Call the Add method
TP Framework Query Add