SitePoint Sponsor

User Tag List

Page 2 of 2 FirstFirst 12
Results 26 to 31 of 31
  1. #26
    SitePoint Wizard co.ador's Avatar
    Join Date
    Apr 2009
    Posts
    1,054
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help pathing images in a database

    I want to store images or pictures in a database but I don't know how to path it.

    I have tried to do it this way _shoesstore/_images/recommendedshoe.gif varchar (100) default NULL and it display the path in the browser instead of the picture.

    _shoesstore/_images/recommendedshoe.gif

    That was the way I path it any suggestion?
    The php file is store in another folder but within the www wamp directory.

    Help please

  2. #27
    SitePoint Wizard co.ador's Avatar
    Join Date
    Apr 2009
    Posts
    1,054
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    does it has any effect on the performance of the code? or it just make it easier to read.?

    Let me take advantage of the situation and ask you the fallowing

    I want to store images or pictures in a database but I don't know how to path it.

    I have tried to do it this way _shoesstore/_images/recommendedshoe.gif varchar (100) default NULL and it display the path in the browser instead of the picture.

    _shoesstore/_images/recommendedshoe.gif

    That was the way I path it any suggestion?
    The php file is store in another folder but within the www wamp directory.

    Help please

  3. #28
    SitePoint Wizard bronze trophy
    Join Date
    Jul 2006
    Location
    Augusta, Georgia, United States
    Posts
    4,194
    Mentioned
    17 Post(s)
    Tagged
    4 Thread(s)
    It wouldn't be noticeable.

  4. #29
    SitePoint Wizard co.ador's Avatar
    Join Date
    Apr 2009
    Posts
    1,054
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Need help storing images in a database

    I want to store an image in a database but I don't know how to path it.

    So far I have assigned a field call image on a table. This field is a varchar (100) deafult NULL, after I have created the field then I just go ahead and place the path inside the var like this
    _shoesstore/_images/recommendedshoe.gif But some how it is not working.

    PS: The php file is store in another folder but within the www wamp directory.

    Any suggestion?

    Thank you

  5. #30
    SQL Consultant gold trophysilver trophybronze trophy
    r937's Avatar
    Join Date
    Jul 2002
    Location
    Toronto, Canada
    Posts
    39,341
    Mentioned
    63 Post(s)
    Tagged
    3 Thread(s)
    i am merging this thread with your previous one, to keep everything together in one place
    rudy.ca | @rudydotca
    Buy my SitePoint book: Simply SQL
    "giving out my real stuffs"

  6. #31
    SitePoint Wizard co.ador's Avatar
    Join Date
    Apr 2009
    Posts
    1,054
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    cool that will work just fine.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •