Grow your CSS skills. Land your dream job.

How To Display Stored Image Using Path?

  • MBM
    # March 1, 2014 at 3:38 pm

    Awesome. Thanks Chris.

    MBM
    # March 1, 2014 at 3:42 pm

    But yes, one table (probably the form table) would have an auto-incrementing PK, which the other table would use.

    The id from the from table is only generated once the record is created. The problem is the image data is also written at the same time so how would I write a query to generate the session from the form table and write it into the image table? Would I write it as part of the insert query?

    __
    # March 1, 2014 at 4:34 pm

    You can use MYSQL_INSERT_ID.

    MBM
    # March 1, 2014 at 4:45 pm

    You can use MYSQL_INSERT_ID.

    Hmm. Sounds promising. Will look into this.

    MBM
    # March 10, 2014 at 7:14 pm

    Resolved it in a similar away. I’m almost finished. I have a script for editing stored form data and images. If I upload an image and save it the form alignment goes out of whack. I’ve played around with the css that I think is the issue but it doesn’t make a difference.

    upload issue

    upload issue

    It’s live here :

    http://mbmitservices.co.uk/TCG/edit.php

    username & password = admin

    php :

    https://gist.github.com/gyprosetti/46002e29676a88c43000

    css :

    https://gist.github.com/gyprosetti/1bc4e203ccab63b12784

    MBM
    # March 11, 2014 at 8:00 pm

    Solved. A check for duplicate image error was pushing the content down.

Viewing 6 posts - 31 through 36 (of 36 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".