It outputs blank for some reason, here is my current code.

<table>
<?php
$puserid = $anothervalue;
echo public_Images($puserid);
?>
</table>
function  public_Images($puserid){
		
	$sql = "SELECT * FROM `ue-userfile` WHERE userid = '$puserid' AND albumname ='Public' ORDER BY date DESC";
$result = mysql_query($sql);
$count = 0;

while($row = mysql_fetch_array($result)){
if ($count % 4 == 0)
echo'<tr>';
echo'<td><img src="u/'.$puserid.'/thumbs/'.$row['name'].'" class="images"/></td>';
if ($count % 4 == 3)
echo '</tr>';
$count++;
}

return;
}

anything you see or know i dont ? hehe

Solved it, thanks for the help!! :D


...:P

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.