C.Joseph Drayton said the following on 5/5/2006 10:09 AM:[color=blue]
> Randy Webb wrote:[color=green]
>> C.Joseph Drayton said the following on 5/5/2006 9:25 AM:
>>[color=darkred]
>>> Hi All,
>>>
>>> I have a web site I am developing, and have a question. I would like
>>> members to be able to upload pictures.
>>>
>>> Do you think they should be saved as individual files or should they be
>>> put in an MySQL database? Which would you recommend, and do you have any
>>> sample code for accomplishing this?
>>>[/color]
>> Whatever the answer, it has nothing to do with Javascript.
>>
>>[/color]
> Actually it does Randy,[/color]
Actually, it doesn't Joseph. There are two parts to what you are doing.
The What and the How. The How would be PHP and JS, the What would be
saving images, and saving images on the server - whether as individual
files or in a MySQL database - has nothing to do with client side
Javascript.
If anything, its a PHP/MySQL question and that would be more on how to
accomplish it instead of what you are trying to accomplish.
[color=blue]
> I suspect that however I choose to get those pictures, I will
> use a combination of JavaScript and PHP to manipulate the
> pictures.[/color]
And that is fine, but whether to save them in a Database (which is an
odd sounding request) or in a file has nothing to do with JS.
[color=blue]
> Right now I use a combination of JavaScript and PHP to handle the
> existing databases so it would seem the same will be the case for
> picture storage.[/color]
Your Javascript doesn't handle the databases, PHP does. JS on the client
may tell PHP to do it but it is PHP doing the work on the server.
--
Randy
comp.lang.javascript FAQ -
http://jibbering.com/faq & newsgroup weekly
Javascript Best Practices -
http://www.JavascriptToolbox.com/bestpractices/