selliottsxm Posted May 7, 2014 Share Posted May 7, 2014 I am having trouble getting this to work. I have a table in my database which contains graphics I need to use in a table. So I want to create a query and array to populate the table. My php is below. Can anyone see what I'm doing wrong? <?php# feeds_user.php This script will advertise the feeds on the index.php page (page for non members)require_once ('../mysqli_connect.php');$q= "SELECT feed_id, feed_graphic AS graphic FROM feeds_user ORDER By feed_id";$r= @mysqli_query ($dbc, $q);while ($row = mysqli_fetch_array ($r, MYSQLI_ASSOC)){echo '<table align="center" cellspacing="0" cellpaddin g="5" border="10" width="1100px"><tr> . <td align="center"><a href="join.php"><img src="'. $row['graphic'] .'"></a></td> <td align="center"><a href="join.php"><img src="'. $row['graphic'] .'"></a></td> <td align="center"><a href="join.php"><img src="'. $row['graphic'] .'"></a></td> <td align="center"><a href="join.php"><img src="'. $row['graphic'] .'"></a></td></tr>';}echo'</table>';?> Link to comment Share on other sites More sharing options...
selliottsxm Posted May 7, 2014 Author Share Posted May 7, 2014 I figured it out. My file permissions were not set correctly and therefore only one image (which for some reason was set right) was displaying! Link to comment Share on other sites More sharing options...
HartleySan Posted May 7, 2014 Share Posted May 7, 2014 What errors (if any) are you getting? Have you tried performing the query directly on the DB? Edit: I responded right when you did. Sorry. Nice find. Link to comment Share on other sites More sharing options...
selliottsxm Posted May 7, 2014 Author Share Posted May 7, 2014 You make me think Jon. Link to comment Share on other sites More sharing options...
Recommended Posts