rendered paste body<?php include "../inc/connect.php"; $query = "SELECT `title`, `artist`, `thumb` FROM `silique` WHERE id IN (1,2,3)"; $result = mysql_query( $query ); if ( !$result ) { // replace this with your own error code -- one that doesn't display the query die($query.'<br />'.mysql_error()); } echo "<p align='left'><font face='Arial'><b>My Thumbnails</b></font><br> <br></p> <table border='0' width='100%' id='table1'> <tr>"; // Build Table while( $row = mysql_fetch_assoc( $result ) ) { $i++; if ( $i == 2 ) { echo '</tr><tr>'; $i = NULL; } echo '<td width="33%" valign="top" height="65">'; echo $row['thumb'].'<br />Title: '.$row['title'].'<br />Artist(s): '.$row['artist']; echo '</td>'; } echo '</tr></table>'; ?>