Timeline for Loading and Referencing Images
Current License: CC BY-SA 4.0
4 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Jul 5, 2020 at 4:40 | comment | added | Ian Turner | A eureka moment... seems blindingly obvious when you first see that the function returns the ID on success! A good example of using code that I didn't fully understand. | |
Jul 5, 2020 at 4:33 | vote | accept | Ian Turner | ||
Jul 4, 2020 at 20:56 | comment | added | Ian Turner | Thank you mozboz. I do use the ID but I get the (post) ID by querying the last ID used (just before I upload the image) and then add 1 to give the 'expected' ID of the post that the image will be attached to ('$result->PostNum). Just seems odd but maybe there is no other way. Having done a lot of Googling, I could not find a better way! | |
Jul 4, 2020 at 17:25 | history | answered | mozboz | CC BY-SA 4.0 |