I can't understand why this PHP script gives me 500 internal server error.
$query = "SELECT video_id,title FROM video_id";
$videos = mysql_query($query);
if($videos){
$videos = mysql_fetch_assoc($videos);
foreach($videos as $video){
echo '<div class="video">';
echo '<a href="video.php?v="'.$video['video_id'].'"> <h3>"'.$video['title'].'"</h3></a>';
echo '</div>';
}
}else{
echo "<p>No new videos actually</p>";
}
mysql_close();
?>
That's the code. It seems as every other simple script i wrote before. Watching the error log via cpanel i saw this error:
[Mon Oct 25 03:25:24 2010] [error] [client 80.181.111.60] SoftException in Application.cpp:256: File "/home/netatwor/public_html/cms/media/related.php" is writeable by group
Can anyone help me?