$sth->execute(); $zan = $sth->fetchColumn(); $sql = "SELECT count(1) as count FROM m_comment WHERE pid = :aid AND type = '1'"; $sth = $db->prepare($sql); $sth->bindParam(':aid', $aid); $sth->execute(); $comment = $sth->fetchColumn(); //获取订单号 $sql = "SELECT order_no FROM m_order WHERE pid = {$aid} AND type = '1' AND mid='{$user['mid']}' ORDER BY id desc"; $sth = $db->prepare($sql); $sth->execute(); $my_order = $sth->fetch(); //print_r($order_no) ;exit; $ckData = $data; unset($ckData['contens']); $cookieApi = new HistoryApi(); $cookieApi->history_sign = 'a_' . $data['aid']; $cookieApi->add_history($ckData); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $data['name']; ?> </title> <meta name="keywords" content="美啦啦,整形美容" /> <meta name="description" content="美啦啦,整形美容" /> <meta name="format-detection" content="telephone=no" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0">
<?php require_once '../inc/common.php'; $cookieApi = new HistoryApi(); $data = ['g' => [], 'a' => []]; foreach ((array) $_COOKIE as $k => $v) { $arr = explode('_', $k); if ($arr[0] == 'g') { $data['g'][] = unserialize($cookieApi->gzdecode(stripslashes($v))); } elseif ($arr[0] == 'a') { $data['a'][] = unserialize($cookieApi->gzdecode(stripslashes($v))); } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title>我的浏览记录</title> <meta name="keywords" content="美啦啦,整形美容" /> <meta name="description" content="美啦啦,整形美容" /> <meta name="format-detection" content="telephone=no" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0"> <link rel="stylesheet" href="../css/common.css" type="text/css" media="all"> <script src="../js/jquery-1.11.2.min.js" type="text/javascript"></script> <script src="../js/mobile.js" type="text/javascript"></script> </head> <body> <!--header--> <header class="header">