"; $querydd = mysql_query($sqldd); $num_mix = mysql_num_rows($querydd); while($item=mysql_fetch_array($querydd)){ $a++; $index=count($fefwegwreg); $fefwegwreg[$index]['category_tv_id']=$item['category_tv_id']; $fefwegwreg[$index]['Prefix']=""; $fefwegwreg[$index]['Prefix_cat']=""; if($level>0){ for($i=0;$i<$level;$i++){ $fefwegwreg[$index]['Prefix'].="  "; } $fefwegwreg[$index]['Prefix'].="- "; } if($item["category_tv_pic"]=="") {$_pic = $_nopic_tv;} else {$_pic = $category_tvcrop_dir.$item["category_tv_pic"];} $fefwegwreg[$index]['pic'] = $_pic; $fefwegwreg[$index]['id'] = $item["category_tv_id"]; $fefwegwreg[$index]['title'] = $item["category_tv_title"]; $fefwegwreg[$index]['view'] = $item["category_tv_view"]; $fefwegwreg[$index]['num'] = $item["category_tv_num"]; $fefwegwreg[$index]['love'] = $item["category_tv_love"]; $fefwegwreg[$index]['category'] = $item["category_tv_category"]; $fefwegwreg[$index]['index'] = $item["category_tv_index"]; $fefwegwreg[$index]['num_mix'] = $num_mix; $fefwegwreg[$index]['NUMM'] = $_NUMM; $fefwegwreg[$index]['Level']=$level; $fefwegwreg[$index]['Parent']=$id; $fefwegwreg[0]['max']=$fefwegwreg[0]['max']+1; $level++; $fefwegwreg=show_subgroup($fefwegwreg,$item['category_tv_id'],$level,$id5); $level--; } return $fefwegwreg; } $category_tv=show_subgroup($arr,0,0,''); $sql_tv=mysql_query("select * from ".$ke_pic."tv where tv_id= ".$_GET["id"]." and tv_status = 1 LIMIT 0 , 1"); $Num_Rows_category_tv = mysql_num_rows($sql_tv); if($Num_Rows_category_tv>0) { $l_tv=mysql_fetch_array($sql_tv); $_title = $l_tv["tv_title"]; } else { exit; } $_comment_id = $l_tv["tv_id"]; $_comment_cat = 'tv'; if($l_tv["tv_pic"]=="") {$_pic = $_nopic_tv;} else {$_pic = $tv_dir.$l_tv["tv_pic"];} //echo "select * from ".$ke_pic."view where view_ip= '".$_IP."' and view_member = '".$_coo."' and view_cat = 'tv' and view_id_web = ".$l_tv["tv_id"]; $insertSQL = sprintf("INSERT INTO ".$ke_pic."view (view_cat,view_id_web,view_date,view_ip,view_member) VALUES (%s,%s,%s,%s,%s)", GetSQLValueString('tv', "text"), GetSQLValueString($l_tv["tv_id"], "int"), GetSQLValueString(date("Y-m-d H:i:s"), "date"), GetSQLValueString($_IP, "text"), GetSQLValueString($_coo, "int")); $Result1 = mysql_query($insertSQL) or die(mysql_error()); $sql_tv_view=mysql_query("select * from ".$ke_pic."tv where tv_id= ".$_comment_id." and tv_status = 1"); $Num_Rows_category_tv_view = mysql_num_rows($sql_tv_view); $l_tv_view=mysql_fetch_array($sql_tv_view); $sql_view=mysql_query("select * from ".$ke_pic."view where view_cat = 'tv' and view_id_web = ".$l_tv_view["tv_id"]); $Num_Rows_view = mysql_num_rows($sql_view); $updateSQL = sprintf("UPDATE ".$ke_pic."tv SET `tv_view`=%s WHERE tv_id=%s", GetSQLValueString($Num_Rows_view, "int"), GetSQLValueString($l_tv_view["tv_id"], "int")); $Result1 = mysql_query($updateSQL) or die(mysql_error()); ?> <? echo $_title; ?> alert('Logout completed'); location.href='index.php';;";*/ echo";"; } /*if($_coo>0) { echo";"; }*/ if($_GET["funtion"]=='Forgot_password') { if($_POST['email']=='') { echo";"; exit;} $sql_member=mysql_query("select * from ".$ke_pic."member where member_email= '".$_POST["email"]."'"); $Num_Rows_member = mysql_num_rows($sql_member); $member_db = mysql_fetch_array($sql_member); if(($Num_Rows_member<1)) {echo";"; exit;} if($member_db["member_email"]<>$_POST["email"]) {echo";"; exit;} $ref_code = md5($member_db["member_email"] . $time . mt_rand()); $updateSQL = sprintf("UPDATE ".$ke_pic."member SET `member_code_resetpassword`=%s WHERE member_id=%s", GetSQLValueString($ref_code, "text"), GetSQLValueString($member_db["member_id"], "int")); $Result1 = mysql_query($updateSQL) or die(mysql_error()); $mail->ClearAddresses(); $mail->AddAddress($member_db["member_email"]); $mail->Subject = "Forgot Password Member WebSite Thaidoctorcosmetic"; $mail->Body = "WebSite Thaidoctorcosmetic

"; $mail->Body .= "You want a new or reset password. when you confirm your reset password by clicking the Link below.
"; $mail->Body .= "Click to confirm your reset password.

"; $mail->Body .= "Please do not reply to this email. If you have any questions, send email to. webmaster@Thaidoctorcosmetic.com"; $mail->Send(); /* echo";";*/ echo";"; } if($_GET["funtion"]=='login_c') { if($_POST['email']=='' or $_POST['password']=='') { echo";"; exit;} $sql_member=mysql_query("select * from ".$ke_pic."member where member_email= '".$_POST["email"]."' and member_status = 1"); $Num_Rows_member = mysql_num_rows($sql_member); $member_db = mysql_fetch_array($sql_member); if(($Num_Rows_member<1)) {echo";"; exit;} if($member_db["member_status"]<1) {echo";"; exit;} if($member_db["member_email"]<>$_POST["email"]) {echo";"; exit;} if($member_db["member_password"]<>md5($_POST["password"])) {echo";"; exit;} if($_GET["ref"] == '' ) {$_ref = 'index.php';} else {$_ref = $_GET["ref"];} if($_POST["memory"]==1) { setcookie('member_jjetrin', $member_db["member_id"], time()+3600*24*1000, '/'); /*echo";";*/ echo";"; } else { setcookie('form_email', '', time()+32400, '/'); setcookie('form_password', '', time()+32400, '/'); $_SESSION['member_jjetrin']=$member_db["member_id"]; /*echo";";*/ echo";"; } echo";"; } ?>

This text will be replaced
" />

COMMENT ON THIS TALK

0 total comment
    $Num_Pages ) || ( $Page < 0 ) ) print "จำนวน $Page มากกว่า $Num_Pages"; $strSQL .= " LIMIT $Page_start, $Per_Page"; $allPage = ceil($Num_Rows/$Per_Page); $fewrg = $Page-1; if($fewrg>0){$fewrg = $fewrg;} else {$fewrg = $Page;} $linkpage = '
    '; $linkpage .= "
      "; if($Page<6){ $i=1; $allPage<11 ? $doLoop = $allPage : $doLoop = 11; while($i<=$doLoop){ if($i==$Page){ $linkpage .= "
    • $i
    • "; }else{ $linkpage .= "
    • $i
    • "; } $i++; } }elseif( ($allPage-$Page) < 6){ $allPage<11 ? $start = 1 : $start = $allPage-10; for($i=$start;$i<=$allPage;$i++){ if($i==$Page){ $linkpage .= "
    • $i
    • "; }else{ $linkpage .= "
    • $i
    • "; } } }else{ for($i=$Page-5;$i<=$Page+5;$i++){ if($i==$Page){ $linkpage .= "
    • $i
    • "; }else{ $linkpage .= "
    • $i
    • "; } } } $linkpage .= "
    "; if($Num_Pages>$Page){$fewr = $Page+1;} else {$fewr = $Page;} $linkpage .= '
    '; $sql_show = mysql_query( $strSQL ); if($Page==1) { $_i = 0*$Per_Page; } else { $_i = ($Page-1)*$Per_Page; } while($comment_db = mysql_fetch_array($sql_show)){ $sql_member_comment=mysql_query("select member_photo,member_name,member_id from ".$ke_pic."member where member_id= '".$comment_db["comment_member"]."'"); $member_db_comment = mysql_fetch_array($sql_member_comment); if($member_db_comment["member_photo"]=="") {$_pic_comment = $_nopic_member;} else { $_pic_comment = $membercrop_dir.$member_db_comment["member_photo"];} //echo $_pic_comment; $_name_comment = $member_db_comment["member_name"]; $_id_comment = $member_db_comment["member_id"]; ?>
  • <? echo $_name_comment;?>

    Comment Date :

Views

|

SUBSCRIBE TO BEAUTY CHANNEL

John Maeda on the simple life John Maeda on the