$query = "SELECT * FROM image_share WHERE to='$username'";
$result = mysql_query($query);
while($row = mysql_fetch_assoc($result))
{
echo '<tr>
<td width="100%" align="left" valign="top">
<div style="border-bottom:1px solid #6F6F6F;"><span style="color:#C0B184;"><a href=""><img src="'.$row['image_sharelink'].'" width="150" height="137"/></a></span><br/>
<br/>
</td>
</tr>';
}
cant figure out why it wont work.
I got my error display on E_ALL
mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in