Welcome to Dream.In.Code
Getting Help is Easy!

Join 132,694 Programmers for FREE! Get instant access to thousands of experts, tutorials, code snippets, and more! There are 1,310 people online right now. Registration is fast and FREE... Join Now!




Display an Image or a Video on web-site

 
Reply to this topicStart new topic

Display an Image or a Video on web-site, How to process the downlaod an image or a video in HTML-PHP-MySQL

lolo54
post 17 Sep, 2008 - 12:27 AM
Post #1


New D.I.C Head

*
Joined: 16 Sep, 2008
Posts: 2

Hello everybody,

I’m starting to learn to develop in HTML, PHP, CSS and MySQL and then I’m trying to make a little web-site of recipes. I want to develop a function to add a new recipe in witch I can, when I want to display it, download an image or a video of it but I don’t know how to proceed, with which tools.

Could someone help me to resolve this problem?

Thank you!

Bye Bye!


crazy.gif
User is offlineProfile CardPM

Go to the top of the page

gothik12
post 17 Sep, 2008 - 05:40 AM
Post #2


D.I.C Head

Group Icon
Joined: 10 Nov, 2007
Posts: 104



Thanked 2 times

Dream Kudos: 25
My Contributions


http://www.wikihow.com/Put-a-Flash-Video-on-Your-Web-Site -- how to put videos on a site

Images are something like <img src="" /> etc. You have to study the HTML . There you go a complete HTML guide http://w3schools.com/html/default.asp .
User is offlineProfile CardPM

Go to the top of the page

bstonehill
post 18 Sep, 2008 - 06:02 AM
Post #3


D.I.C Head

Group Icon
Joined: 21 Jan, 2008
Posts: 50



Thanked 1 times
My Contributions


QUOTE(lolo54 @ 17 Sep, 2008 - 04:27 AM) *

Hello everybody,

I’m starting to learn to develop in HTML, PHP, CSS and MySQL and then I’m trying to make a little web-site of recipes. I want to develop a function to add a new recipe in witch I can, when I want to display it, download an image or a video of it but I don’t know how to proceed, with which tools.

Could someone help me to resolve this problem?

Thank you!

Bye Bye!


crazy.gif


If you're just learning you may want to check out tizag.com, it's a great beginners guide covering html, javascript, php, css, and mysql among others. Make sure you download the MySQL GUI Tools if you don't already have them.

For your images I would have your upload script save the image with the recipe id as the filename and save the path to that image in the recipe table. Then you can simply have your php script lookup the appropriate path for the current recipe and plug into your <img> tag when it's serving the page.
User is offlineProfile CardPM

Go to the top of the page

lolo54
post 23 Sep, 2008 - 01:39 PM
Post #4


New D.I.C Head

*
Joined: 16 Sep, 2008
Posts: 2

Thank You very much bstonehill,

I'm going to try and inform you!

Otherwise, It's midnight in Nancy (in France), then;


Bye Bye! icon_up.gif

Thank You very much gothik12,

I'm going to try and inform you!

Otherwise, It's midnight in Nancy (in France), then;


Bye Bye! icon_up.gif
User is offlineProfile CardPM

Go to the top of the page

Fast ReplyReply to this topicStart new topic
Time is now: 11/23/08 07:47AM

Live Help!

Tutorials

Programming

Web Development

Reference Sheets

Code Snippets

Bye Bye Ads

Free DIC T-Shirt

T-Shirt Example

Related Sites

Monthly Drawing

Thumb Drive

Partners

Top Contributors

Top 10 Kudos This Month