本文整理汇总了PHP中CTable::select方法的典型用法代码示例。如果您正苦于以下问题:PHP CTable::select方法的具体用法?PHP CTable::select怎么用?PHP CTable::select使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CTable
的用法示例。
在下文中一共展示了CTable::select方法的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: get_option
static function get_option($selectedvalue, $tablename="pays", $colvaluename="id", $colvuename="nom", $where=1) {
$option = "";
$result = CTable::select($colvaluename . " , " . $colvuename, $tablename, $where, $colvuename);
while($array = mysql_fetch_array($result)) {
$selected = CForm::get_selected($selectedvalue, $array[$colvaluename]);
$option = $option . "<option value='" . $array[$colvaluename] . "'" . $selected . ">" . ucfirst(utf8_encode(substr($array[$colvuename], 0, 25))) . "</option>\n";
}
return $option;
}
示例2: get_option
static function get_option($selectedvalue, $tablename, $colvaluename="id", $colvuename="nom", $where=1, $order = null) {
$option = "";
if(!$order) {
$order = $colvuename;
}
$result = CTable::select($colvaluename . " , " . $colvuename, $tablename, $where, $order);
while($array = mysql_fetch_array($result)) {
$selected = CForm::get_selected($selectedvalue, $array[$colvaluename]);
$option = $option . "<option value='" . $array[$colvaluename] . "'" . $selected . ">" . $array[$colvuename] . "</option>\n";
}
return $option;
}
示例3: fetchAll
static function fetchAll($select="*", $where="1", $order="mlt_zMail, mlt_zDateCreation") {
$oRes = parent::select($select, 'moul_tables', $where, COrder::formate($order));
$toResults = array() ;
if ($oRes){
while ($toRes = mysql_fetch_assoc($oRes)){
$toResults[] = $toRes ;
}
}
return $toResults ;
}
示例4: select
static function select($select="*", $where="1", $order="rang") {
return parent::select($select, 'categorie_user', $where, COrder::formate($order));
}
示例5: select
static function select($select="*", $where, $order="id") {
if(empty($order)) $order = "id";
return parent::select($select, 'rdvContact', $where, COrder::formate($order));
}
示例6: select
static function select($select="*", $where="1", $order="id") {
if(empty($order)) $order = "id";
// return parent::select($select, 'gr_rdv_user', $where, COrder::formate($order));
return parent::select($select, 'gr_rdv', $where, COrder::formate($order));
}
示例7: select
static function select($select="*", $where="1", $order="rang") {
return parent::select($select, 'domaine', $where, $order="rang");
}
示例8: select
static function select($select="*", $where="1", $order="nom") {
return parent::select($select, 'departement', $where, $order);
}
示例9: select
static function select($select="*", $where="1", $order="nom_com"){
return parent::select($select, 'commune', $where, COrder::formate($order));
}
示例10: select
static function select($select="*", $where="1", $order="id desc") {
if(empty($order)) $order = "id desc";
return parent::select($select, 'user', $where, COrder::formate($order));
}