不过,一般不用这样子吧,你的想法倒是挺好,可是,如果通过循环然后再赋值,就不用考虑页面的长度了,例如
while($arr = mysql_fetch_array($res))
{
?>
<a href="index.php?type=<?=$arr['type']?>&itemid=<?=$arr['itemid']?>">XXX</a>
<?php
}
?>
这样就行了,呵呵,祝你好运
可以考虑用base设定基地址:<html>
<head>
<base href="http://www.abc.com/">
<title>test</title>
</head>
<body>
<a href="abc/a.html" >page a</a><br>
<a href="abc/b.html" >page b</a><br>
<a href="abc/c.html" >page c</a><br>
</body>
</html>
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)