Upload / show images on forms
Posted: Thu Jun 13, 2013 5:22 pm
Hi,
I am newbie with all php / JavaScript etc... coming from MS Access but I know nuBuilder since long when I made my first approach abou 2 years ago.
Now I believe it is more understandable to me and making my 1st app with simply 4 tables... all is up and running as expected except that I want to keep an image for product table and want it to be
uploaded/ shown on edit form
Up to now no complete luck, and that is why I am asking for advise.
Looking up this forum I got few ideas looking at SCimage form properties via myphpadmin ( why it is not shown when looged as globeadmin on forms browse ? )
there I have copied code for after update and JavaScript and made my version form my table of uploadimage.php found at production2 folder, etc...
Up to now I am almost there since I get the image uploaded to the table and can see the blob column filled at myphpadmin.
Final step whas creating an html object as suggested with sample code copied ... changed ... back to original.. etc but no luck to get the image of the record shown on edit form....
I don't ask for writing code for me... I'll keep trying and getting there for sure even losing a couple more of days....
but I am asking that you make a good example in a new version say for the employees table of samplenufinancial ...
since I am sure it will help a lot of people that need using images from blob columns...
As far as I have been able to search I have not found any simple tutorial of example anywhere of the forum or wiki
Sorry if it is a long post
Regards from Barcelona / Spain
I am newbie with all php / JavaScript etc... coming from MS Access but I know nuBuilder since long when I made my first approach abou 2 years ago.
Now I believe it is more understandable to me and making my 1st app with simply 4 tables... all is up and running as expected except that I want to keep an image for product table and want it to be
uploaded/ shown on edit form
Up to now no complete luck, and that is why I am asking for advise.
Looking up this forum I got few ideas looking at SCimage form properties via myphpadmin ( why it is not shown when looged as globeadmin on forms browse ? )
there I have copied code for after update and JavaScript and made my version form my table of uploadimage.php found at production2 folder, etc...
Up to now I am almost there since I get the image uploaded to the table and can see the blob column filled at myphpadmin.
Final step whas creating an html object as suggested with sample code copied ... changed ... back to original.. etc but no luck to get the image of the record shown on edit form....
I don't ask for writing code for me... I'll keep trying and getting there for sure even losing a couple more of days....
but I am asking that you make a good example in a new version say for the employees table of samplenufinancial ...
since I am sure it will help a lot of people that need using images from blob columns...
As far as I have been able to search I have not found any simple tutorial of example anywhere of the forum or wiki
Sorry if it is a long post
Regards from Barcelona / Spain