我有以下。我的问题是当点击“购买”链接时index.php
,paynow.php
页面上没有显示任何内容。我哪里出错了?
PS:unitprice
回声很好。所以我知道从 SQL 数据库中提取数据没有问题。
索引.php
$sql_content = "show columns from cameras";
$get_res = mysql_query($sql_content);
$cols = mysql_num_rows($get_res);
$page = $_REQUEST['page'];
$start = ($page-1)*8;
$sql_content1 = "select * from cameras limit $start,$per_page";
$query = mysql_query($sql_content1);
$j=0;
while ($rows = mysql_fetch_assoc($query))
{
?>
<link href="style1.css" rel="stylesheet" type="text/css" />
<div id='mainFrame'>
<div id='totalFrame'>
<div id='priceX'><b>Rs. </b> <?php echo $rows['unitprice'];?></div><!--pricex-->
<div id='buynow'><a href="paynow.php?id="<?php echo $rows['model']; ?>">Buy</a></div>
</div><!--close total frame-->
</div>
<?php
paynow.php
<?php
print $_GET["id"];
?>