ragazzi ho questo problema :
Notice: Undefined variable: timeadjust in /home/web/www.sito.net/www/c/web/upload.php on line 152
nella linea 152 ho: (che inizia da $reg)
Codice PHP:
// now, we start the upload 'process'. That is, to copy the uploaded file
// from its temporary location to the wanted location
// It could be something like $handle->Process('/home/www/my_uploads/');
$handle->Process('usergallery/');
// we check if everything went OK
if ($handle->processed) {
// everything was fine !
echo ' file uploaded with success
';
echo ' [img]usergallery/' . $handle->file_dst_name . '[/img]
';
$info = getimagesize($handle->file_dst_pathname);
echo ' link to the file just uploaded: [url="../usergallery/' . $handle->file_dst_name . '"]' . $handle->file_dst_name . '[/url]
';
$imageurl = "http://site.net/c/usergallery/$handle->file_dst_name";
$reg = mysql_query("INSERT INTO ibwf_gallery SET uid='".$uid."', imageurl='".$imageurl."', sex='".$userinfo[1]."', time='".(time() - $timeadjust)."'");
} else {
// one error occured
echo ' file not uploaded to the wanted location
';
echo ' Error: ' . $handle->error . '
';
}
// we delete the temporary files
$handle-> Clean();
} else {
// if we're here, the upload file failed for some reasons
// i.e. the server didn't receive the file
echo ' file not uploaded on the server
';
echo ' Error: ' . $handle->error . '';
}
echo "</p>";
riuscite a aiutarmi a risolvere???grazie...