我在查询中遇到问题我正在获取数据,但图像标签显示存在语法问题。
> <?php
> $query = "SELECT * from tbl_showrides";
> $result = mysql_query($query);
> while($row = mysql_fetch_array($result)){
> $query_img = "SELECT image_name FROM tbl_rides_image WHERE
> ride_id=".$row['id'].' LIMIT 1';
> $result_img = mysql_query($query_img);
> $row_img = mysql_fetch_assoc($result_img);
> <img src="<?php echo $base_url.'rides/'.$row_img['image_name']?>"/>
> }
> ?>