📄 index.php
字号:
<html><HEAD><TITLE>环保设计大赛</TITLE></HEAD><BODY><?PHPinclude ("huanbao.connect.php"); $query="select * from huanbao_user order by id"; $result = mysql_query($query,$db); $usernum=mysql_num_rows($result); echo "<center>"; echo "<br><hr><br>"; for($i=0;$i<$usernum;$i++) { $tt = mysql_fetch_array($result); $picquery="select * from huanbao_pic where huanbao_user_id='$tt[id]' order by joindate"; $picresult = mysql_query($picquery,$db); $picnum=mysql_num_rows($picresult); for ($j=0;$j<$picnum;$j++) { $rr= mysql_fetch_array($picresult); //显示图片$photo_url=$rr[url];if ($photo_url<>""){$image_file="http://studentunion.w18.net".$photo_url;$image_size=getimagesize($image_file);$width=$image_size[0];$width1=$image_size[0];$height=$image_size[1];$height1=$image_size[1];//echo $image_file."   ".$rr[id];$height1=$height*200/$width;$width1=200;$imageurl=$photo_url;echo "<a href=\"$photo_url\" target=\"_blank\">";//$imageurl=$photo_url;echo "<img src=\"$photo_url\"";echo "width=\"$width1\" height=\"$height1\" border=\"0\"";echo "></a> ";} } if ($picnum>0) { echo "<br><br>"; echo "第".$tt[id]."号作品<br>"; echo "作品名:".$tt[product]."<br>"; echo "文字说明:".$tt[info]."<br>"; echo "作者:".$tt[author]."<br>"; echo "<br><a href=\"vote.php?id=$tt[id]\">[投此作品一票]</a><br>"; echo "<br><hr><br>"; } } echo "</center>"; mysql_close($db);?></BODY></HTML>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -