• rociofatas

    (@rociofatas)


    One of my db fields stores documents. Would like to retrieve them with a php command and don’t know how to do it. All other fields types I can, but not with this one. How do I get to know where my files are stored or better yet, how do I actually fetch them?

    http://wordpress.org/extend/plugins/db-toolkit/

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author David Cramer

    (@desertsnowman)

    HI there,
    documents are stored in the wp-content/uploads folder as with normal media uploads.

    Thread Starter rociofatas

    (@rociofatas)

    Hey!

    Thanks so much; your plugin is a life saver.

    I however can’t get to access the content using the following php hack:

    echo $row->author.”
    “.$row->sfile.”
    “.”<img src='”.$row->cover.”‘ width=100 height=100 />
    “.$row->name.”
    “;

    so all those variables are the data stored in my db. All the content displays with this code, including images; but not the files. I assume I just don’t know enough wp/php, but wondering if it could have to do with the plugin itself or if you would have some sort of hint around how to print the url of where my file is stored?

    Plugin Author David Cramer

    (@desertsnowman)

    how are you trying to display the file? what kind of files are they?

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Retrieve document data’ is closed to new replies.