Hi i have 2 errors on some software i brought for inbox can anyone tell me whats wrong with the code below to cause the errors any help would be much appreicated ty jan
Warning: implode() [function.implode]: Invalid arguments passed in /home/letsswin/public_html/inbox.php on line 198
Warning: mysql_fetch_array() expects parameter 1 to be resource, boolean given in /home/letsswin/public_html/inbox.php on line 200
// Fetch user random for display on bottom
<h1> line 198</h1> $idtopuid = implode(',', $topuid);
$userquery = mysql_query("select * from user where user_id != '".$_SESSION['userid']."' and user_id NOT IN (".$idtopuid.") order by rand() limit 0,5");
<h1> line 200</h1> while($fet_query=mysql_fetch_array($userquery))
{
$show_gender = $fet_query['user_gender'];
$show_id = $fet_query['user_id'];
$fetch_img2 = mysql_fetch_array(mysql_query("select user_image from user_images where user_id = '".$show_id."' and main_image = '1' "));
$show_img = $fetch_img2['user_image'];
?>
<div class="box">
<?php if($show_img != '') { ?>
<a href="viewprofile.php?profid=<?php echo $show_id;?>&gen=<?php echo $show_gender;?>"><img src="images/user_images/smallthumb/<?php echo $show_img;?>" border="0" width="100" height="80"/></a>
<?php }