Welcome Guest, Not a member yet? Register   Sign In
if exist update data else insert new data
#3

(05-14-2020, 04:25 AM)InsiteFX Wrote: Try to fetch the image if it does not exist then an empty array will be returned.

Now you can use and if statement to check the returned array,
if empty insert image else update image.

Thanks for your answer. If i have 5 images: 3 updated and 2 new...with a if statement i can update 3 images OR add 2 new images. Have i lost something in your answer?  Undecided
Reply


Messages In This Thread
RE: if exist update data else insert new data - by eleumas - 05-14-2020, 05:52 AM



Theme © iAndrew 2016 - Forum software by © MyBB