Конкретно това е целия ПХП код
с червено е проблема
<?php
include "config.php";
if ($_SESSION['username'])
{
echo "     <br>
<br>
<p class='bold'><span style='color:red;'>Warning:</span> Bulgarian artist and songs must be written in CYRILLIC!</p>
<p class='bold'>Lines marked with <span style='color:red;'>*</span> are required!</p>
<form action='/prestashop_35382/contact-form.php' method='post' class='std' enctype='multipart/form-data'>
<fieldset>
<h3>Upload A Song</h3>
<p class='text'>
<label for='email'><span style='color:red;'>*</span>Artist</label>
<input type='text' name='ispylnitel'>
</p>
<p class='text'>
<label for='email'><span style='color:red;'>*</span>Song</label>
<input type='text' name='pesen'>
</p>
<p class='text'>
<label for='email'>Album</label>
<input type='text' name='album'>
</p>
<p class='text'>
<label for='email'>Year</label>
<input type='text' name='godina'>
</p>
<p class='text'>
<label for='email'>Lyrics</label>
<textarea name='text' rows='15' cols='30'></textarea>
</p>
$query = 'SELECT * FROM catsmusic';
$result = mysql_query($query) or die (mysql_error());
echo"
<p class='select'>
<label for='id_contact'><span style='color:red;'>*</span>Category</label>
<select name='kategoria'>
while($row = mysql_fetch_assoc($result))
{
if($lang == "es")
{
$kategoria = $row['kategoria_es'];
}
if($lang == "en")
{
$kategoria = $row['kategoria_en'];
}
else
{
$kategoria = $row['kategoria'];
}
echo "<option value='$row[id]'>$kategoria</option>";
}
echo "</select>
</p>";
echo "<p class="text">
<label for="id_order"><span style='color:red;'>*</span>File link</label>
<input type="text" class='intext' name='song' style='width:380px;height:20px;'/>
</p>
<p class="submit">
<input type="submit" name="submit" value="I am ready to upload!" class="button_large" />
</p>
</fieldset>
</form>";
$ispylnitel = htmlspecialchars($_POST['ispylnitel']);
$kategoria = htmlspecialchars($_POST['kategoria']);
$pesen = htmlspecialchars($_POST['pesen']);
$album = htmlspecialchars($_POST['album']);
$godina = htmlspecialchars($_POST['godina']);
$text = htmlspecialchars($_POST['text']);
$link = htmlspecialchars($_POST['link']);
$date = time();
$kachil = $_SESSION['username'];
if(isset($_POST['submit']))
{
$type = $_FILES['song']['type'];
$files = $_FILES['song']['tmp_name'];
$names = $_FILES['song']['name'];
$size = $_FILES['song']['size'];
if($files != NULL)
{
$rand = "song" . rand(0000, 9999) . "-" .rand(00, 99);
$fil = array('mp3');
$fil2 = end(explode('.', $names));
$path = "song/".$rand.".".$fil2;
$fileu = $rand. ".".$fil2;
if(in_array($fil2, $fil))
{
if ($ispylnitel == NULL && $pesen == NULL)
{
echo "<br><br><br><br><center>You have not fill every line!</center>";
}
else
{
//Тука е заявката за да се добавя сайт във базата данни! Ъпдейтват се: Име, Категория, Сайт, Банер, Описание.
mysql_query("INSERT INTO proverka (ispylnitel,kategoria,pesen,link,kachil,album,godina,text,date) VALUES ('$ispylnitel','$kategoria','$pesen','$fileu','$kachil','$album','$godina','$text','$date')") or die(mysql_error());
echo "<br><br><br><br><span style='color:white;'><center>The song <strong>$pesen</strong> was successfully added! <b> - <a href='songs.php'>See all uploaded songs</a>.</span><br />";
}
}
}
else
{
echo "<br><br><br><br><center>You are not logged in!</center>";
}
?>