Database Table add content
-
Hi for all,
I manage a website where there is possibilities to book tours. we are a group of guides that we create our own platform between us.
All work fine but now I have a difficult task to do, some guides want to disable some dates, in backend is possible and easy, but we don’t want to do it with backend, only by frontend giving to each guide a password to limit access.
what we want is:
For each tour we want a kind of form with only 1 field: Date to disable. Let take an example of tour with ID 277 (Let call it TOUR IN AMSTERDAM), so the form will have the possibility to add data only with tis ID.
In the Databae access to table wp_postmeta
there is the post_id with value 277 (A lot of row of course)
meta_key with a value wt_disabledate (The condition or the the rows with date to disable)
meta_value with the date to disable booking, but here the format in the database is LONGTEXT and the date is saved in Unix date format (for example 28/02/2021=1614470400), guide have to introduce the date in normal format and system have to add a row with all data converting the last one to UNIX DATE FORMAT.
Can anyone help us with some idea? Plugin? or what else?
We are without work 1 year now because of pandemic and we are trying to get ready after this pandemic to come back to earn some money.
Thanks to all.
The topic ‘Database Table add content’ is closed to new replies.