Notice: Undefined index: cid in E:\\Usb Web Server v7.0\\Root\\gallery\\[B]<font color='"Red"'>viewgallery.php</font>[/B] on line 8
I only have preupload.php and upload.php only
No you don't. You also have viewgallery.php, otherwise it wouldn't give you that error
In fact, you should have 5 php files.
From the page you got the script from:
Create Direct Links to Categories and Images
To create direct links from other pages of our site to the categories, we just need to know the Category Id. For example, to link to Category Id = 1 you can use the following URL:
To link up an image, you need to know its Photo Id and as well as its Category Id:
The above link will open the Photo Id = 1 if that exists in the Category Id 1.