Error Upload Photo Gallery

Started on the old forum in June 2008 · view the original in the archive · old links redirect here

18 replies · 1,248 views · started 18 years ago · 1 min read

6 participants
sweetangel Lead · 885 posts #2

line 152 is:

$reg = mysql_query("INSERT INTO ibwf_gallery SET uid='".$uid."', imageurl='".$imageurl."', sex='".$userinfo[1]."', time='".(time() - $timeadjust)."'");

if like my post click:

External image (may be gone)

ReGzBk Developer · 115 posts #8

Lolz m learning but this mite work try this :-

$timeadjust="05.30"; ////Change the TimeZone accordingly!
$reg = mysql_query("INSERT INTO ibwf_gallery SET uid='".$uid."', imageurl='".$imageurl."', sex='".$userinfo[1]."', time='".(time() - $timeadjust * 60 * 60)."'");

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

ReGzBk Developer · 115 posts #17
<?php
$height= 150;
$width= 150;
// Content type
header('Content-type: image/jpeg');
if(!$filename)
$filename="../images/nopic.jpg";
// Get new dimensions
list($width_orig, $height_orig) = getimagesize($filename);

if ($width && ($width_orig < $height_orig)) {
   $width = ($height / $height_orig) * $width_orig;
} else {
   $height = ($width / $width_orig) * $height_orig;
}

// Resample
$image_p = imagecreatetruecolor($width, $height);
$image = imagecreatefromjpeg($filename);
imagecopyresampled($image_p, $image, 0, 0, 0, 0, $width, $height, $width_orig, $height_orig);

// Output
imagejpeg($image_p, null, 100);
ImageDestroy ($image_p);
?>

is this...

Lolz this is absolutely fine i hope u have a folder named images to store pics lolz nothing else cud be error

ViSiT Ma SiTe Nd PoSt Ua CoMmEnTs On It In Ma PoSt

sweetangel Lead · 885 posts #18

Lolz this is absolutely fine i hope u have a folder named images to store pics lolz nothing else cud be error

but I upload correct the file...I set perm at 777 in usergallery folder but only view photo not work.....if I use photo uploaded with avatar at profile I view correct...

but why this??? External image (may be gone)

if like my post click:

External image (may be gone)

Sign in to reply.

Similar topics

Keyboard shortcuts

g f
Go to forums
g h
Go to your feed
g m
Go to messages
r
Reply (in a topic)
/
Search
j
Next post
k
Previous post
?
This list
Ctrl/⌘ + Enter
Send what you are writing
Ctrl/⌘ + B / I
Bold / italic while writing
Esc
Close