Its, my gallery for my new website. What happens is, the php file connects to a mysql database, and selects all the querys that have the authors name from a row, and displays information, which then displays the photo.
Now my asking of help isnt about the php, but mearly the HTML.
When the tables are printed by the php code, they look all ugly like this: (this is honestly the best I could do with them):
http://www.washingto...s/other/123.jpg
but I want the query to be displayed like this:
http://www.washingto...s/other/223.jpg
I honestly dont know what to do about this. Ive tried everything - divs, floats, tables but I cant get it to work!
Here is the code for when the query is activated:
if($gallery){
$query = "SELECT *
FROM `pictures`
WHERE `author` LIKE '%{$gallery}%'
COLLATE latin1_swedish_ci
LIMIT 0 , 8";
$result = mysql_query($query) or die(mysql_error());
echo('<table cellspacing="1">');
while($r = mysql_fetch_array($result)){
$titlea = $r["title"];
$authora = $r["author"];
$datesqla = $r["uploaddate"];
$keywordsa = $r["keywords"];
$discriptiona = $r["discription"];
$equipmenta = $r["equipment"];
$pathimga = $r["path"];
$paththumba = $r["thumb"];
$thumbimga = $r["thumb"];
$downloadsa = $r["downloads"];
$ida= $r["mid"];
echo ('<tr>
<td class="general" height="225" width="464"><center>
<a href="download.php?id='.$ida.'" target="_blank">
<img src="'.$thumbimga.'" title="'.$titlea.', By '.$authora.'" border="0"><br>
<a href="download.php?id='.$ida.'" target="_blank"><b>#'.$ida.'</b>
</a>
<a href="download.php?id='.$ida.'" target="_blank">Download</a>
</td>
<td class="general"width="300" >
<b>'.$titlea.'</b><br>
<font class="gsecond">'.$discriptiona.'</font><br>
Uploaded by <a href="http://www.washingtonphoto.org/member/memberlist.php?id=view&user='.$authora.'">'.$authora.'</a><br>
on '.$datesqla.'<p>
Using: '.$equipmenta.'<br>
<b>'.$titleb.'</b> has been downloaded '.$downloadsa.' times.
</td>
</tr>
');
}
echo('</table>');
}
-yes I coded that myself, sorry about the crappyness
Please help me!
~Nehle!~
