query("SELECT `video_title`, `artist`, `instruments`, `YTcode` FROM video WHERE `video_type`='0' ORDER BY RAND() LIMIT 1"); $vid = $results->fetch_array(); $results->free(); ?>
sunshine welcome

Right:




query("SELECT * FROM articles WHERE `active`='1' AND `tags`='homepage' ORDER BY RAND()"); while($row = $results->fetch_array()) { $img = $row['image']; if (file_exists($image_folder.$img)) { $large_image = $image_folder.$img; $image = $imgre_folder."resized_".$img; $thumb = $thumb_folder."thumb_".$img; if (!file_exists($image)) { createthumb($large_image,$image,525,525); } if (!file_exists($thumb)) { createthumb($large_image,$thumb,200,200); } } else { $large_image = $large_no_image; $image = $no_image; $thumb = $thumb_no_image; } $blurb = !empty($row['content']) ? $row['content'] : $row['description']; $blurb = strtrim(strip_tags($blurb),$str_trim_no); $link = $art.$row['id'].$sep.seoUrl($row['title']); ?>
<?PHP echo $row['title']; ?>


free(); ?>