我想要再子給寫的php網頁中
抓到lifetype的個人圖像
這是我目前寫的
blog名稱抓的到
但是相簿名稱跟圖檔名卻抓不到標準的
這連結是我目前寫的顯示樣式
http://163.14.68.24/92aprod/blog.php這是我寫這個的程式的程式碼
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=big5">
<title>無標題文件</title>
</head>
<? session_start(); $user=$_SESSION['user']; ?>
<body bgcolor="#85CEFA" scroll="auto" leftmargin="0" topmargin="0">
<?
$link = mysql_connect("localhost", "root" , "");
if (!$link) die("與資料庫的連接失敗");
$db_selected = mysql_select_db("blog", $link);
if (!$db_selected) die("開啟資料庫失敗");
$a=0;
$str="SELECT * FROM lt_blogs ";
$result= mysql_query($str);
while(list($id,$blog,$owner_id,$about,$settings,$mangled_blog,$status,$show_in_summary)=mysql_fetch_row($result)){
$bname[$a]=$blog;
$a++;
}$str1="SELECT count(*) FROM lt_blogs ";
$result1= mysql_query($str1);
list($count)=mysql_fetch_row($result1);
?>
<table width="100%" height="100%" border="1" align="left" cellpadding="0" cellspacing="0" bordercolor="#3333FF">
<tr>
<td height="30" valign="middle" bgcolor="#3333FF"><font color="#FFFF66" size="3"><strong>BLOG</strong></font></td>
</tr>
<tr>
<td align="center" >
<table width="80%" border="1" bordercolor="#FFFFFF" >
<tr>
<td width="80" height="22" bgcolor="#0099FF"><div align="center"><span class="style6"><strong>blog</strong></span></div></td>
</tr>
<?$i=0;
$b=0;
$c=0;
while($i<$count)
{
$str2="SELECT * FROM lt_gallery_albums ";
$result2= mysql_query($str2);
while(list($id,$owner_id,$description,$name,$flags,$parent_id,$date,$properties,$show_album,$normalized_description,$normalized_name,$mangled_name)=mysql_fetch_row($result2)){
if(($b+1)==$owner_id)
{$id[$b]=$owner_id;
$uname[$b]=$name;}
else
{$id[$b]=0;
$uname[$b]=$uname[0];
}
$b++;
}
$str3="SELECT * FROM lt_gallery_resources ";
$result3= mysql_query($str3);
while(list( $id,$owner_id,$album_id,$description,$date,$flags,$resource_type,$file_path,$file_name,$metadata,$thumbnail_format,$normalized_description,$properties )=mysql_fetch_row($result3)){
if(($c+1)==$owner_id)
{
$fname[$c]=$file_name;
}
else
{
$fname[$c]=$fname[0];
}
$c++;
}
?>
<tr>
<td width="80" height="22" bgcolor="#FFFFCC"><img src="http://163.14.68.24/92aproD/lifetype/blog/<? echo $bname[$i] ?>/resource/<?echo $uname[$i]?>/preview/<?echo $fname[$i];?>" width="130" height="130"></td>
<td width="80" height="22" bgcolor="#FFFFCC"><a href="http://163.14.68.24/92aproD/lifetype/blog/<? echo $bname[$i]; ?>" target="_blank">
<? echo $bname[$i]."的部落格";?>
</a></td>
<?$i=$i+1;}?>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>