I have a site I built locally and migrated to a live environment. Later I created a copy of this site and booted it up locally again to do some further dev in there. My local dev software (Local by Flywheel) created a fresh DB for the site to run from at
I have an wordpress website and have a lots of user's that write content in it. Sometimes when users edit or create new post and save it, after refresh it disappeared.
I have a backup system that mysqldump all database ev
My application lets users store diary entries into a database table. They are free to set the date and time to what they need using html inputs (so I can't simply use the current time because they might want to create an entry in the past).
I am trying to match tag names with form titles to fetch the correct form into the current post, to subscribe to new posts tagged with the current posts tag.
I only have 1 tag assigned per post.
The code for categories works well, and I tried to t
On a new page in an existing WP website, I used a page_custom.php template to create a form where the user enters their product's serial numbers in 2 input boxes, clicks a "Submit" button, and the code displays a table with their associated data includin
I am trying to create table on plugin activation, I tried making the same function inside the class and calling it from the constructor, and I tried calling it outside the class and finally i tried to make another php file for calling it using the
I am having trouble saving the selected wp.media attachment URL to the database.
The value of the hidden input seems to get the value, but the value is not being stored in the database.
$table_name = $wpdb-&g
I have this code which works great.
$result = $wpdb->get_results("SELECT comment_count, ID, post_title FROM $wpdb->posts ORDER BY comment_count DESC LIMIT 0 , 25"); // NUMBER OF POSTS
foreach ($result as $to