473,549 Members | 3,099 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

HELP: Product Database - adding images!

ok, so i now know how to add, edit, delete and search for products (havent
figured out categorisation out yet tho) - how do i upload an image and save
the file name to the database as part of the admin? something dummies can
follow that doesnt use a component (can i throw in a chunk of code and
specify the table fieldname and directory the file needs to go into?)

cheerz

mark
Jul 19 '05 #1
3 2434
On Thu, 9 Oct 2003 10:24:18 +0100, "mark | r" <ma**@nmd.freeu k.com>
wrote:
ok, so i now know how to add, edit, delete and search for products (havent
figured out categorisation out yet tho) - how do i upload an image and save
the file name to the database as part of the admin? something dummies can
follow that doesnt use a component (can i throw in a chunk of code and
specify the table fieldname and directory the file needs to go into?)


Well, you do it that same way you send other data to a record. :)

You need to provide more info if you want specifics, such as what
database, what ASP code you're using and so on.

Jeff
Jul 19 '05 #2

"Jeff Cochran" <jc************ *@naplesgov.com > wrote in message
news:3f******** ********@msnews .microsoft.com. ..
On Thu, 9 Oct 2003 10:24:18 +0100, "mark | r" <ma**@nmd.freeu k.com>
wrote:
ok, so i now know how to add, edit, delete and search for products (haventfigured out categorisation out yet tho) - how do i upload an image and savethe file name to the database as part of the admin? something dummies can
follow that doesnt use a component (can i throw in a chunk of code and
specify the table fieldname and directory the file needs to go into?)


Well, you do it that same way you send other data to a record. :)

You need to provide more info if you want specifics, such as what
database, what ASP code you're using and so on.

Jeff


using msaccess and a standard insert sql? i already have the product name,
description etc working in an administratable format, i plan on adding
session based security which looks simple enough, i plan on having thumbs
and enlargements uploaded to the web server in a particular folder.

im really looking for a lump of script that will take form fields and upload
a file to the server, adding the filename into the database.

mark
Jul 19 '05 #3
On Thu, 9 Oct 2003 13:09:14 +0100, "mark | r" <ma**@nmd.freeu k.com>
wrote:

"Jeff Cochran" <jc************ *@naplesgov.com > wrote in message
news:3f******* *********@msnew s.microsoft.com ...
On Thu, 9 Oct 2003 10:24:18 +0100, "mark | r" <ma**@nmd.freeu k.com>
wrote:
>ok, so i now know how to add, edit, delete and search for products(havent >figured out categorisation out yet tho) - how do i upload an image andsave >the file name to the database as part of the admin? something dummies can
>follow that doesnt use a component (can i throw in a chunk of code and
>specify the table fieldname and directory the file needs to go into?)


Well, you do it that same way you send other data to a record. :)

You need to provide more info if you want specifics, such as what
database, what ASP code you're using and so on.

Jeff


using msaccess and a standard insert sql? i already have the product name,
description etc working in an administratable format, i plan on adding
session based security which looks simple enough, i plan on having thumbs
and enlargements uploaded to the web server in a particular folder.

im really looking for a lump of script that will take form fields and upload
a file to the server, adding the filename into the database.


Google "ASP Upload" and you'll find quite a few options. Also take a
look at:

http://www.aspfaq.com/show.asp?id=2189
http://www.aspfaq.com/show.asp?id=2149

You have the option of how you'll store the images to think about, for
example, will they all be the same size? Will they be at that size
when you upload or will they need to be resized? Are you storing all
image files in a single directory or in separate directories? If
separate, how are the directories structured?

For example, if all images are stored with the part number as the name
and in the same folder, say \images, then you don't even need to worry
about storing the info in a database. You'd just provide them with
code similar to:

Response.Write "<IMG SRC='/images/" & PartNumber & ".jpg'>"

Jeff
Jul 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
3258
by: laurie | last post by:
Hi all, I'm trying to help out a friend who has inherited a client with a PHP shopping cart application. Neither of us know PHP, but I've been muddling my way through, trying to get these old scripts working on a new server with the most recent version of PHP. I've pretty much taken care of all the various errors that were popping up. ...
9
3114
by: netpurpose | last post by:
I need to extract data from this table to find the lowest prices of each product as of today. The product will be listed/grouped by the name only, discarding the product code - I use SUBSTRING(ProductName, 1, CHARINDEX('(', ProductName)-2). I can get this result, but I had to use several views (totally inefficient). I think this can be...
2
1564
by: cda_Alford | last post by:
Hello, I applogize in advance for my lack of understanding and the lack of information I'm about to provide. I am out of my element and I'm hoping that someone here can help point me in the right direction. I have a customer who has images and index data for those images. I would like to extract the data and load it into a SQL Server...
5
2064
by: PR | last post by:
Searchable product images + prices database? What system should I use to put a database on the WEB which shows images and allows searches, including searches within given price ranges for products? There will be product images too, thumbnails and larger images? All the data will be on a single server, on the same
2
1494
by: Gamesetal | last post by:
I need to include a picture / photograph in a Db then from a query export to Excel - picture included - I just can't find a way through this - can anyone please help? TIA JOhn
1
2157
by: ollielaroo | last post by:
Hi guys, Firstly I did do a search for this one first but I couldn't find anything related in this forum. I am using Dreamweaver MX and trying to build admin pages for an ASP site. My problem is I have Categories and various Products in each Category. I'm trying to build a page to EDIT/UPDATE each product.I want to be able to change the...
2
1896
praclarush
by: praclarush | last post by:
I need to take an image that was in a Array object image and have it display in a table. this is for a item list the table has four columns one for the image, one for a description, one for a price, and the last for the amount of the item. I've looked on the internet for help but all I find is how to do image switches for links and slideshows....
2
1280
by: xaviergxf | last post by:
Hi everyone, I have the following problem: i have 3 pages: Page1, Page2, Page3; These pages register a product. In Page1 i do a post to Page2. In Page2, i asynchrony upload some images, to be used at Page2 itself, the images will be saved at the DB, and used like: <img src="ShowImage.php?cod=1231">. Each Image has a product associated....
0
7520
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
7446
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7718
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7956
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7470
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
0
3480
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1936
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1058
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
763
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.