How to fix dis error? <br/><br/> -->
file not uploaded to the wanted
location
Error: GD doesn't seem to be
present
«Back to Gallery
Home
file not uploaded to the wanted
location
Error: GD doesn't seem to be
present
«Back to Gallery
Home
<?php
error_reporting(E_ALL);
$userinfo = mysql_fetch_array(mysql_query("SELECT name, sex FROM yggrassil_users WHERE id='".$uid."'"));
$membername = $userinfo[0];
if ($_POST['action'] == 'image') {
echo "<head>";
echo "<title>Mobile Kawap</title>";
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"style.css\">";
echo "</head>";
echo "<body>";
echo "<p align=\"center\">";
move_uploaded_file($_FILES['my_field']['tmp_name'] ,'../pkfiles/'.$_FILES['my_field']['name']);
echo ' file uploaded with success<br/>';
echo ' <img src="../pkfiles/' . $_FILES['my_field']['name'] . '" /><br/>';
if($_POST["pid"]==1)
{
$pid = 1;
}else{
$pid = 0;
}
$reg = mysql_query("INSERT INTO yggrassil_gallery SET uid='".$uid."', itemurl='../pkfiles/'".$_FILES['my_field']['name']."', sex='".$userinfo[1]."', time='".time()."', private='".$pid."'");
echo "</p>";
////// UNTILL HERE >>
echo "<p align=\"center\">";
echo "<br/><br/><a href=\"index.php?action=pkgal&sid=$sid\">« ;Back to Gallery</a><br/>";
echo "<a href=\"index.php?action=main&sid=$sid\">";
echo "Home</a>";
echo "</p>";
echo "</body>";
echo "</html>";
exit();
}
?>
Comment