?? empty___.php
字號:
<?PHPinclude ("huanbao.connect.php"); $query="select * from huanbao_pic order by huanbao_user_id,joindate"; $result = mysql_query($query,$db); $num=mysql_num_rows($result); echo "<center>"; echo "<br><br>"; $rr=0; $id=0; for($i=0;$i<$num;$i++) { $rr_old=$rr; $rr = mysql_fetch_array($result); $id_old=$id; $id=$rr[huanbao_user_id]; if (($id<>$id_old) and ($rr_old<>0)) { //顯示作品名/作者/文字說明 $query="select * from huanbao_user where id='$rr_old[huanbao_user_id]'"; $result=mysql_query($query,$db); $tt=mysql_fetch_array($result); echo "<br><br>"; echo $tt[product]."<br>"; echo $tt[info]."<br>"; echo $tt[author]."<br>"; echo "<br><br>"; } //顯示圖片$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> ";} } echo "</center>"; mysql_close($db);?>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -