本文整理汇总了PHP中myclass::fs_search方法的典型用法代码示例。如果您正苦于以下问题:PHP myclass::fs_search方法的具体用法?PHP myclass::fs_search怎么用?PHP myclass::fs_search使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类myclass
的用法示例。
在下文中一共展示了myclass::fs_search方法的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: account_save_profile
public function account_save_profile($profile_row_name, $profile_row_name_val, $mno)
{
$mc = new myclass();
$fullName = '';
$isName = FALSE;
echo " profile_row_name_val = {$profile_row_name_val}";
$prn = explode(',', $profile_row_name);
$prnv = explode('_new_', $profile_row_name_val);
echo " rowname <br> ";
print_r($prn);
echo " values <br>";
print_r($prnv);
for ($i = 0; $i < count($prn); $i++) {
#check if exist if its exist then return faild.
$rn = $prn[$i];
$rv = $prnv[$i];
// $rv = str_replace('Your Firstname','',$rv);
$rv = str_replace('Your Nickname / Alias', '', $rv);
$rv = str_replace('Your Lastname', '', $rv);
// if update the full name
if ($rn == 'lastname' || $rn == 'firstname' || $rn == 'nickname' || $rn == 'middlename') {
$rv = ucwords($rv);
$isName = TRUE;
$fullName .= $rv . ' ';
}
//if update the username
if ($rn == 'username' || $rn == 'email') {
update1('fs_member_accounts', $rn, $rv, array('mno', $mno));
} else {
update1('fs_members', $rn, $rv, array('mno', $mno));
}
}
// If name is being updated then notify all the followers
if ($isName == TRUE) {
$_SESSION['noti_table_name'] = TRUE;
$_SESSION['noti_type'] = 'change-name';
$_SESSION['fullName'] = $fullName;
$mc->send_notification_to_follower($mno);
print 'send notification to follwers change name';
} else {
print 'failed to send notification maybe this is not changing name';
}
// add or updated keyword
$mc->fs_search(array('type' => 'add-or-updated-keyword', 'table_name' => 'fs_members', 'table_id' => $mno));
}
示例2: location
}
}
}
}
}
// print_r($Tlist);
// pltg plno plt_color plt_brand plt_garment plt_material plt_pattern plt_price plt_purchased_at plt_x plt_y plt_date
for ($i = 0; $i < count($Tlist); $i++) {
$Tpos = location($Tlist[$i][8]);
// print_r($Tpos);
echo "x " . $Tpos[1] . ' y = ' . $Tpos[3] . '<br>';
insert('fs_pltag', array('plno', 'plt_color', 'plt_brand', 'plt_garment', 'plt_material', 'plt_pattern', 'plt_price', 'plt_purchased_at', 'plt_x', 'plt_y', 'plt_date'), array($plno, $Tlist[$i][1], $Tlist[$i][2], $Tlist[$i][3], $Tlist[$i][4], $Tlist[$i][5], $Tlist[$i][6], $Tlist[$i][7], $Tpos[1], $Tpos[3], date("Y-m-d")), 'pltgno');
$keyword .= $lookName . ' , ';
$keyword .= $Tlist[$i][1] . ' , ' . $Tlist[$i][2] . ' , ' . $Tlist[$i][3] . ' , ' . $Tlist[$i][4] . ' , ' . $Tlist[$i][5] . ' , ' . $Tlist[$i][6];
// insert keyword for search
$response = $mc->fs_search(array('type' => 'add-or-updated-keyword', 'table_name' => 'postedlooks', 'table_id' => $plno, 'keyword' => $keyword));
$newbrandname = $Tlist[$i][2];
// check if this brand is exist or not
if (!selectV1('*', 'fs_brands', array('bname' => $newbrandname))) {
// if ( !select_v3( "fs_brands" , "*" , "bname <=> $newbrandname" ) ) {
// if not exist insert to new brands
insert('fs_brands', array('bname'), array($newbrandname), 'pltgno');
} else {
// nothing happends
}
}
function location($Tpos)
{
return explode(',', $Tpos);
}
// update1('postedlooks','date_','2013-04-26',array('plno',$_SESSION['last_look_uploaded']));
示例3: count
}
if ( $country == 'Country' ) {
echo '<country>country required<country>';
}
if ( $province == 'State / providence' or $province == 'Select State / Providence' ) {
echo '<province>province required<province>';
}
if ( empty($city) ) {
echo '<city>city required<city>';
}
if ( empty($zipcode) ) {
echo '<zipcode>zipcode required<zipcode>';
}
*/
// add or updated keyword
$mc->fs_search(array('type' => 'add-or-updated-keyword', 'table_name' => 'fs_members', 'table_id' => $mno));
break;
case 'sb':
$wtres = $_SESSION['wtres'];
$pagenum = $_SESSION['csb_fs']++;
$start = $mc->get_loop_start($pagenum, $wtres);
$all_brands = $mc->get_all_brand("{$start} , {$wtres} ");
$brand_selected = $mc->retreive_specific_user_brand_selected($mno, 'order by bmsno desc');
// echo " wtres $wtres , pagenum $pagenum , start $start <br><BR><BR><RB><BR>";
if (!empty($all_brands)) {
echo " \n\t\t\t\t\t<table border='0' cellspacing='0' cellpadding='0' style='margin-top:0px;' > ";
$c = 0;
$tbrand = count($all_brands);
for ($i = 0; $i < $wtres; $i++) {
if ($i < $tbrand) {
$c++;
示例4:
// echo " <BR><BR><BR> action = $action process = $process <br> ";
// echo " this is the gen.modals.func.php <br><BR><BR> <H1> EDSAN GWAPA!</H1>";
// echo "adsasdas da<br> dasdada<b>";
// echo "table name = $table_name and table_id $table_id <br> ";
// echo " method $method <br>";
# initlaized
$text_more_member = null;
$text_more_article = null;
$text_more_look = null;
$_SESSION['counter_member'] = 0;
$_SESSION['counter_article'] = 0;
$_SESSION['counter_look'] = 0;
$limit_end = $_SESSION['view_more'];
// $_SESSION['keySearch'] = $keySearch;
# retrieved response display limit 7 modals
$member = $mc->fs_search(array('type' => 'select', 'where' => "keyword LIKE '{$keySearch}%' and table_name = 'fs_members' ", 'orderby' => 'sno asc', 'limit_start' => 0, 'limit_end' => $limit_end));
$article = $mc->fs_search(array('type' => 'select', 'where' => "keyword LIKE '{$keySearch}%' and table_name = 'fs_postedarticles' ", 'orderby' => 'sno desc', 'limit_start' => 0, 'limit_end' => $limit_end));
$look = $mc->fs_search(array('type' => 'select', 'where' => "keyword LIKE '{$keySearch}%' and table_name = 'postedlooks' ", 'orderby' => 'sno desc', 'limit_start' => 0, 'limit_end' => $limit_end));
# retrieve total modal speifici search result
$tmember = select_v4(array('type' => 'select', 'tablename' => 'fs_search', 'rows' => 'count(*) as sno', 'where' => " keyword LIKE '{$keySearch}%' and table_name = 'fs_members' "));
$tmember = $tmember[0]['sno'];
$tarticle = select_v4(array('type' => 'select', 'tablename' => 'fs_search', 'rows' => 'count(*) as sno', 'where' => " keyword LIKE '{$keySearch}%' and table_name = 'fs_postedarticles' "));
$tarticle = $tarticle[0]['sno'];
$tlook = select_v4(array('type' => 'select', 'tablename' => 'fs_search', 'rows' => 'count(*) as sno', 'where' => " keyword LIKE '{$keySearch}%' and table_name = 'postedlooks' "));
$tlook = $tlook[0]['sno'];
# subtract the result and total count of the search
// $tmember = $tmember; - count( $member );
// $tarticle = $tarticle; - count( $article );
// $tlook = $tlook; - count( $look );
# calculate result for view more text
if ($tmember > $_SESSION['view_more']) {