so close..!
okay so now i have:
?>
$FILEPATH = $query['filepath'];
?>
<a href="viewArticle.php?FILEPATH=<? echo $FILEPATH?>"><div id="mainWindow">
<div id="image"><img src="<? echo $query['filepath']?>" class="image"/></div>
<div id="smallInfo">
<div id="smallTitle"><? echo $query['title']?></div>
<div id="smallUsername">by <? echo $query['username']?></div>
<div id="smallRating">rated <? echo $query['rating']?></div>
</div>
</div></a>
on my multiple display page, and then
<?php
$FILEPATH = (int) $_GET['FILEPATH'];
$result = mysql_query("SELECT * FROM uploads WHERE filepath=$FILEPATH");//
$row= mysql_fetch_array($result);
?>
<div id="mainWindow">
<div id="image"><img src="<? echo $row['filepath']?>" class="image"/></div>
<div id="smallInfo">
<div id="smallTitle"><? echo $row['title']?></div>
<div id="smallUsername">by <? echo $row['username']?></div>
<div id="smallRating">rated <? echo $row['rating']?></div>
</div>
</div>
on my viewArticle page. it works.. kind of. the browser displays the correct url in the url bar for the image you click.. yet displays the wrong info, infact it always displays the same picture and info no matter what one you click on to view in its single post page.
im guessing theres something wrong with my query but I cant work it out!
EDIT: the query appears to be just selecting the first row of data in the database, and not selecting the row where the filepath matches, but i cant figure out the query