• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.