douzhuan0309 2011-11-29 09:39
浏览 42
已采纳

如何通过php使用数据库获取图像之间的空间

I am using following code to fetch images using database with php.

while($row = mysql_fetch_array($result))  //To excute result query 

{

echo "<a href='http://".$row['website']."' target='_blank'><img src=\"" . $PathImage .       $row['logo'] . "\" height = $FooterWidth /></a>XX;

}

Here I am using $row[logo] is fetching the path of images stored on the server and XX to put the spaced between the images having the same color of text XX as background, and but I want to use the proper method I know this can be done using table but I want to do it without using table.

Any Suggestions?

  • 写回答

5条回答 默认 最新

  • douju5933 2011-11-29 09:46
    关注
    echo "<a href='http://".$row['website']."' target='_blank' style='margin:10px'><img src=\"" . $PathImage .       $row['logo'] . "\" height = $FooterWidth /></a>XX;
    
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥15 回答4f系统的像差计算
  • ¥15 java如何提取出pdf里的文字?
  • ¥100 求三轴之间相互配合画圆以及直线的算法
  • ¥100 c语言,请帮蒟蒻写一个题的范例作参考
  • ¥15 名为“Product”的列已属于此 DataTable
  • ¥15 安卓adb backup备份应用数据失败
  • ¥15 eclipse运行项目时遇到的问题
  • ¥15 关于#c##的问题:最近需要用CAT工具Trados进行一些开发
  • ¥15 南大pa1 小游戏没有界面,并且报了如下错误,尝试过换显卡驱动,但是好像不行
  • ¥15 自己瞎改改,结果现在又运行不了了