I am having a problem in my query I am fetching data but the image tag is showing that there is a syntax problem .
> <?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']?>"/>
> }
> ?>