5 Replies - 5600 Views - Last Post: 08 February 2011 - 09:49 PM Rate Topic: -----

#1 uchiaziz  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 10-October 09

how to put and use videos and photos in mysql and php

Posted 10 October 2009 - 08:51 AM

/* basically i want to now how i save pics and video in database
i don't need code but want to is it simple like to put text information in table field or something different...*/
:blink:

CTphpnwb edit: Code tags are for code.

This post has been edited by CTphpnwb: 10 October 2009 - 09:11 AM

Is This A Good Question/Topic? 0
  • +

Replies To: how to put and use videos and photos in mysql and php

#2 CTphpnwb  Icon User is online

  • D.I.C Lover
  • member icon

Reputation: 3077
  • Posts: 10,790
  • Joined: 08-August 08

Re: how to put and use videos and photos in mysql and php

Posted 10 October 2009 - 09:11 AM

You insert the path to the image the same way you'd insert any other data.
Was This Post Helpful? 0
  • +
  • -

#3 Tarliman  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 9
  • Joined: 22-March 09

Re: how to put and use videos and photos in mysql and php

Posted 10 October 2009 - 10:37 AM

There's a splendid tutorial on how to upload images into a DB and then display thumbnails and the original images in your web page at PHP Tutorials Examples Storing Images. You would use the same code for video, as an image and a video would both be stored as binary large objects (BLOBs).
Was This Post Helpful? 0
  • +
  • -

#4 dreamincodehamza  Icon User is offline

  • D.I.C Regular
  • member icon

Reputation: -12
  • View blog
  • Posts: 332
  • Joined: 12-September 08

Re: how to put and use videos and photos in mysql and php

Posted 10 October 2009 - 02:09 PM

YEAH THIS TUTORIALS SHOW YOU EVERYTHING.
THE IDEA IS SIMPLE.

YOU NEED TO STORE THE IMAGE EXTENION.
AND VERY IMPORTANT IS
YOU NEED TO OPEN THE IMAGE WITH
FOPEN FUNCTION GET THE IMG CREATING CODE SOMETHIGN WE
CALLED THEN AND STORE IN DATABAE
'
WHEN YOU NEED TO SHOW IT THEN
GET BOTH THING WHICH YOU STORE.
AND THAT'S IT .
TUTORIAL SHOWING YOU EVERY THING.
Was This Post Helpful? 0
  • +
  • -

#5 Guest_stephen*


Reputation:

Re: how to put and use videos and photos in mysql and php

Posted 08 February 2011 - 09:38 PM

CAN ANYBODY help me to put a video in php?thanks
Was This Post Helpful? 0

#6 Dogstopper  Icon User is offline

  • The Ninjaducky
  • member icon



Reputation: 2876
  • View blog
  • Posts: 11,050
  • Joined: 15-July 08

Re: how to put and use videos and photos in mysql and php

Posted 08 February 2011 - 09:49 PM

Start your own topic showing what you've tried so far. Then we will be happy to help.
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1