<?php require_once('Connections/ABC.php'); ?>
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}$maxRows_Recordset1 = 10;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
$pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
}
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;mysql_select_db($database_webshopConn, $webshopConn);
$query_Recordset1 = "SELECT * FROM news ORDER BY `No` DESC";
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $webshopConn) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);if (isset($_GET['totalRows_Recordset1'])) {
$totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
$all_Recordset1 = mysql_query($query_Recordset1);
$totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
}
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
?><!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>
<style type="text/css">
<!--
#apDiv4 {
position:absolute;
left:76px;
top:12px;
width:66px;
height:20px;
z-index:1;
background-color: #3333FF;
visibility: visible;
}
#a1 {
position: relative;
width: 50;
height: 50;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_showHideLayers() { //v9.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3)
with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
</head><body >
<p> </p>
<table width="1042" height="198" border="1">
<tr>
<td width="109">No</td>
<td width="115">type</td>
<td width="110">title</td>
<td width="133">content</td>
<td width="144">postDate</td>
<td width="162">adminName</td>
<td width="140">img</td>
</tr>
<?php do { ?>
<tr>
<td height="60"><?php echo $row_Recordset1['No']; ?></td>
<td><?php echo $row_Recordset1['type']; ?></td>
<td><?php echo $row_Recordset1['title']; ?></td>
<td><?php echo $row_Recordset1['content']; ?></td>
<td><?php echo $row_Recordset1['postDate']; ?></td>
<td><?php echo $row_Recordset1['adminName']; ?></td>
<td >
<div id="a1">
<div id="apDiv4">gewfge</div>
<img src="goodsimg/<?php echo $row_Recordset1['img']; ?>" alt="" width="50" height="50" onmouseover="MM_showHideLayers('apDiv4','','show')" onmouseout="MM_showHideLayers('apDiv4','','hide')"/></div></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
<p> </p>
<p> </p>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>http://one.xthost.info/dwadwq/%2326410%3b%2321629%3b%2321517%3b11.jpg按228的圖能顯示或隱藏228藍色的圖
按227的圖又是顯示或隱藏228藍色的圖,現在想按227的圖能顯示或隱藏227藍色的圖,謝謝
<?php
if (!function_exists("GetSQLValueString")) {
function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "")
{
$theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) {
case "text":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "long":
case "int":
$theValue = ($theValue != "") ? intval($theValue) : "NULL";
break;
case "double":
$theValue = ($theValue != "") ? "'" . doubleval($theValue) . "'" : "NULL";
break;
case "date":
$theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL";
break;
case "defined":
$theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue;
break;
}
return $theValue;
}
}$maxRows_Recordset1 = 10;
$pageNum_Recordset1 = 0;
if (isset($_GET['pageNum_Recordset1'])) {
$pageNum_Recordset1 = $_GET['pageNum_Recordset1'];
}
$startRow_Recordset1 = $pageNum_Recordset1 * $maxRows_Recordset1;mysql_select_db($database_webshopConn, $webshopConn);
$query_Recordset1 = "SELECT * FROM news ORDER BY `No` DESC";
$query_limit_Recordset1 = sprintf("%s LIMIT %d, %d", $query_Recordset1, $startRow_Recordset1, $maxRows_Recordset1);
$Recordset1 = mysql_query($query_limit_Recordset1, $webshopConn) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);if (isset($_GET['totalRows_Recordset1'])) {
$totalRows_Recordset1 = $_GET['totalRows_Recordset1'];
} else {
$all_Recordset1 = mysql_query($query_Recordset1);
$totalRows_Recordset1 = mysql_num_rows($all_Recordset1);
}
$totalPages_Recordset1 = ceil($totalRows_Recordset1/$maxRows_Recordset1)-1;
?><!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>
<style type="text/css">
<!--
#apDiv4 {
position:absolute;
left:76px;
top:12px;
width:66px;
height:20px;
z-index:1;
background-color: #3333FF;
visibility: visible;
}
#a1 {
position: relative;
width: 50;
height: 50;
}
-->
</style>
<script type="text/javascript">
<!--
function MM_showHideLayers() { //v9.0
var i,p,v,obj,args=MM_showHideLayers.arguments;
for (i=0; i<(args.length-2); i+=3)
with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
obj.visibility=v; }
}
//-->
</script>
</head><body >
<p> </p>
<table width="1042" height="198" border="1">
<tr>
<td width="109">No</td>
<td width="115">type</td>
<td width="110">title</td>
<td width="133">content</td>
<td width="144">postDate</td>
<td width="162">adminName</td>
<td width="140">img</td>
</tr>
<?php do { ?>
<tr>
<td height="60"><?php echo $row_Recordset1['No']; ?></td>
<td><?php echo $row_Recordset1['type']; ?></td>
<td><?php echo $row_Recordset1['title']; ?></td>
<td><?php echo $row_Recordset1['content']; ?></td>
<td><?php echo $row_Recordset1['postDate']; ?></td>
<td><?php echo $row_Recordset1['adminName']; ?></td>
<td >
<div id="a1">
<div id="apDiv4">gewfge</div>
<img src="goodsimg/<?php echo $row_Recordset1['img']; ?>" alt="" width="50" height="50" onmouseover="MM_showHideLayers('apDiv4','','show')" onmouseout="MM_showHideLayers('apDiv4','','hide')"/></div></td>
</tr>
<?php } while ($row_Recordset1 = mysql_fetch_assoc($Recordset1)); ?>
</table>
<p> </p>
<p> </p>
</body>
</html>
<?php
mysql_free_result($Recordset1);
?>http://one.xthost.info/dwadwq/%2326410%3b%2321629%3b%2321517%3b11.jpg按228的圖能顯示或隱藏228藍色的圖
按227的圖又是顯示或隱藏228藍色的圖,現在想按227的圖能顯示或隱藏227藍色的圖,謝謝
解决方案 »
- 有人能交我怎么开发商城网站吗
- 分享我的快速开发经验
- 为什么用localhost,127.0.0.1可以访问,但用ip却不行(apache+php+mysql)?
- php json_encode问题
- 求解决一个php下载图片失败的问题,图片必须能全部正常显示
- [求解]php中用xml的时候怎么处理中文
- PHP5网页可以用IIS5.0做服务器吗?如果可以,该怎样设置PHP5和IIS5.0呢??
- 记录集的指针定位,相当于mysql_data_seek,在oracle,odbc中用什么函数
- 求思路、代码!!再线等,解决就给分!!!!
- 请教关于mysql中的字段值在页面上的输出的问题
- dreamweaver 使用重複區域問題
- php缓存动态生成html的问题ob_get_contents
增加一下人气