PHP网页问题急啊~~正做着呢~高手快进来看下

来源:百度知道 编辑:UC知道 时间:2024/09/22 14:37:36
我想作出一个网上书城的样子!先做出一个表 然后用循环刷出其他的来
请高手帮我看看接下来要怎么写!!!在线等快!!!! 解决了追加分数
<!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=gb2312" />
<title>无标题文档</title>
//下面是CSS样式
<style type="text/css">
.con
{
width:750px;
border:solid 1px #cccccc;
font-size:12px;
font-family:Tahoma;
height:580px;
vertical-align: middle;
}

.aa {
float: left;
width:200px;
height:170px;
margin-left: 2px;
}
.Layer1 {

你的程序应该写成这样才比较合理。

<?php

$books = array(
array(
'name' => '火影忍者[433话]',
'price' => 6.5,
'realPrice' => 6.0,
'image' => '1'
),
array(
'name' => '火影忍者[432话]',
'price' => 6.5,
'realPrice' => 6.0,
'image' => '2'
),
array(
'name' => '火影忍者[431话]',
'price' => 6.5,
'realPrice' => 6.0,
'image' => '3'
),
array(
'name' => '火影忍者[430话]',
'price' => 6.5,
'realPrice' => 6.0,
'image' => '4'
),
array(
'name' => '火影忍者[429话]',
'price' => 6.5,
'realPrice' => 6.0,
'image' => '5'
),
);
?>
<table>
<tr>