Goede dag allemaal,

Kan iemand mij misschien verder helpen waarom mijn upload van het plaatje niet werkt?
dit is bij een spel toevoegen, bij een andere .php een bewerking van de games werkt de upload wel. Echter omdat ik nu een beetje een tunnelvisie heb, zie ik niet meer het verschil. wellicht dat jullie er een frisse blik op kunnen werken

PHP Code:

$select = ("SELECT * FROM game_games where name = '$naam'"); // Selecteren uit een tabel
$query = mysql_query($select); 
$aantal = mysql_num_rows($query);

if ( $aantal != "0" )
{
$fout3=3;
}

if ( $fout1 == "0" && $fout2 == "0" && $fout3 == "0")
{

mysql_query("INSERT INTO `game_games` (name,url,width,height,cat,extra) VALUES ('$naam','$url','$breedte','$hoogte','$cat','$rank')");

$select = ("SELECT * FROM game_games where name = '$naam' AND url = '$url' and height = '$hoogte' and width = '$hoogte'"); // Selecteren uit een tabel
$query = mysql_query($select); 
$aantal = mysql_num_rows($query);
while($list = mysql_fetch_object($query)){
$id = "$list->id";
}

if ( $mijnbestand1 != "")
{

copy($mijnbestand1, "../screenshot/".$id.".jpg"); 

mysql_query ("INSERT INTO 'game_games' SET screenshot = '". $id .".jpg' where id = '$id'");

}


$select = ("SELECT * FROM game_cat where id = '$cat'"); // Selecteren uit een tabel
$query = mysql_query($select); 
$aantal = mysql_num_rows($query);
while($list = mysql_fetch_object($query)){
$cat1=$list->name;
}

echo "<font size='2' color='#041B5B'><img src='toegevoegd.jpg'> De game is succesvol toegevoegd in de database in de categorie: <b>$cat1</b>.<br><br>
        <img src='toevoegen.jpg'> Klik <a href='?p=game_toevoegen.php'>hier</a> om nog een game toe te voegen.";
        }
else
{
echo "<font size='2' color='#041B5B'><b><img src='verwijder.jpg'> De game is om de volgende reden(en) niet toevoegd:</b><br>";
if ( $fout1 == "1" )
{
echo "- Niet alle velden werden ingevuld.<br>";
}
if ( $fout2 == "2" )
{
echo "- U moet eerst categorieën aanmaken, vooraleer u games kunt toevoegen.<br>";
}
if ( $fout3 == "3" )
{
echo "- Deze game staat al in de database.";
}
echo "<br><br>Klik <a href='?p=game_toevoegen.php'>hier</a> om het opnieuw te proberen.";
}

}


else
{
echo "
<form method='post' action='?p=game_toevoegen.php&send=1' enctype=multipart/form-data>
                                    <table border='0' width='100%' id='table1' cellspacing='0' cellpadding='0'>
                                        <tr>
                                            <td width='30%'>
                                            <font size='2' color='#041B5B'>Naam</font></td>
                                            <td width='70%'>
                                            <input type='text' name='naam' size='20'></td>
                                        </tr>
                                        <tr>
                                            <td width='30%'>
                                            <font size='2' color='#041B5B'>Url</font></td>
                                            <td width='70%'>
                                            <input type='text' name='url' size='50' value='http://www.speelcity.nl/games/.swf'></td>
                                        </tr>
                                        <tr>
                                            <td width='30%'>
                                            <font size='2' color='#041B5B'>Breedte</font></td>
                                            <td width='70%'>
                                            <input type='text' name='breedte' size='20' value='820'></td>
                                        </tr>
                                        <tr>
                                            <td width='30%'>
                                            <font size='2' color='#041B5B'>Hoogte</font></td>
                                            <td width='70%'>
                                            <input type='text' name='hoogte' size='20' value='600'></td>
                                        </tr>
                                        <tr>
                                            <td width='30%'>
                                            <font size='2' color='#041B5B'>Categorie</font></td>
                                            <td width='70%'>
                                            <select size='1' name='cat'>";
$select = ("SELECT * FROM game_cat ORDER by name ASC"); // Selecteren uit een tabel
$query = mysql_query($select); 
$aantal = mysql_num_rows($query);
if ( $aantal == "0" )
{
echo "<option>Geen categorieën</option>";
}
else
{
while($list = mysql_fetch_object($query)){
echo "<option value='$list->id'>$list->name";
}
}
echo "
                                            </select></td>
                                        </tr>";
if ( $screen == "Aan" )
{
echo "                                        <tr>
                                            <td width='30%'>
                                            <font size='2' color='#041B5B'>
                                            Screenshot </font>
                                            <font color='#041B5B' size='1'>
                                            (klein formaat)</font></td>
                                            <td width='70%'>
                                            <input type='file' name='mijnbestand1' value='$screenshot'></td>
                                        </tr>";
}

echo "
                                        <tr>
                                            <td width='30%'>&nbsp;</td>
                                            <td width='70%'><input type='submit' value='Game toevoegen'></td>
                                        </tr>
                                    </table></form>
                                    ";
                                    }
                                    ?>
<?php
}
?>