Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums Back End How To Display Stored Image Using Path?

  • This topic is empty.
Viewing 6 posts - 31 through 36 (of 36 total)
  • Author
    Posts
  • #164472
    MBM
    Participant

    Awesome. Thanks Chris.

    #164473
    MBM
    Participant

    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?

    #164475
    __
    Participant

    You can use MYSQL_INSERT_ID.

    #164476
    MBM
    Participant

    You can use MYSQL_INSERT_ID.

    Hmm. Sounds promising. Will look into this.

    #165335
    MBM
    Participant

    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

    #165478
    MBM
    Participant

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

Viewing 6 posts - 31 through 36 (of 36 total)
  • The forum ‘Back End’ is closed to new topics and replies.