nie mogę załadować obrazu, wydaje mi się że bląd tkwić może w ściezce- linia 39, lub coś jestz plikiem temp, możecie pomóc?
<?php include("config.php"); include("functions.php"); $validid = pf_validate_number($_GET['id'], "redirect", "index.php"); } $theitemsql = "SELECT user_id FROM items WHERE id = " . $validid . ";"; if($theitemrow['user_id'] != $_SESSION['USERID']) { } if($_POST['submit']) { if($_FILES['userfile']['name'] == '') { } elseif($_FILES['userfile']['size'] == 0) { } elseif($_FILES['userfile']['size'] > $MAX_FILE_SIZE) { } } else { $uploaddir = "C:/xampp/htdocs/sites/auction/images/"; $uploadfile = $uploaddir . $_FILES['userfile']['name']; $inssql = "INSERT INTO images(item_id, name) VALUES(" . $validid . ", '" . $_FILES['userfile']['name'] . "')"; } else { } } } else { require("header.php"); $imagessql = "SELECT * FROM images WHERE item_id = " . $validid . ";"; if($imagesnumrows == 0) { } else { echo "<td>[<a href='deleteimage.php?image_id=" . $imagesrow['id'] . "&item_id=" . $validid . "'>delete</a>]</td>"; } } switch($_GET['error']) { case "empty": break; case "nophoto": break; case "photoprob": break; case "large": break; case "invalid": break; } ?> <form enctype="multipart/form-data" action="<?php pf_script_with_get($SCRIPT_NAME); ?>" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="3000000"> <table> <tr> <td>Image to upload</td> <td><input name="userfile" type="file"></td> </tr> <tr> <td><input type="submit" name="submit" value="Upload File"></td> </tr> </table> </form> When you have finished adding photos, go and <a href="<?php echo "itemdetails.php?id=" . $validid; ?>">see your item</a>! <?php } require("footer.php"); ?>