Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

mysql

How to check if a meta value has already been assigned to any user?

August 5, 2022 by Magenaut

On my website I automatically generate an 8-digits random number $rndnr via wp_rand() during the registration process and save it as user meta.

Categories Q&A, Wordpress Tags customization, functions, mysql, php, user-meta Leave a comment

How to improve my non-unique metadata MySQL entries?

August 5, 2022 by Magenaut

I’m working on a plugin for WooCommerce which uses a cpt called Restock. In a Restock post you can enter products ( id ) plus restock. The user can add as many product restock pairs as they want per post.

Categories Q&A, Wordpress Tags custom-field, meta-query, metabox, mysql, post-meta Leave a comment

Using AND and bracket grouping in SQL not working

August 5, 2022 by Magenaut

I am trying to combine two conditions in a query but it isn’t working. but running the conditions independently works.

Categories Q&A, Wordpress Tags database, mysql, plugin-development, sql Leave a comment

how update data through ajax and jquery

August 5, 2022 by Magenaut

I try to update data through ajax, but it not worked. What I did wrong?
Here is jquery ajax code

Categories Q&A, Wordpress Tags ajax, jquery, mysql, wp-query Leave a comment

Upload media only to DB

August 5, 2022 by Magenaut

I’m using the latest WordPress (5.6) and from what I’ve found out there’s no visible setting for uploading media directly to a DB. Is there such an option somewhere hidden or does WordPress not support DB as a media storage instead of wp-content/uploads?

Categories Q&A, Wordpress Tags database, images, media, mysql, uploads Leave a comment

Use $wpdb or other PHP script method to find/replace in WP database

August 5, 2022 by Magenaut

I’m hoping to push a bug fix for a custom WordPress plugin my sites use.

Categories Q&A, Wordpress Tags mysql, php, sql, wpdb Leave a comment

why update and delete query not worked in custom table?

August 5, 2022 by Magenaut

this is custom template. I wrote crud by using wordpress query to sent data in custom table of database and get from database, insert query worked, but update and delete query not working. Below I give update and delete query, please suggest if anyone knows?

Categories Q&A, Wordpress Tags database, mysql, wp-query Leave a comment

Is it good practice to use wpdb->query() function?

August 5, 2022 by Magenaut

I am using custom php code to perform data insertion, deletion, updating and other tasks. I am able to insert data into a table in two different ways,

Categories Q&A, Wordpress Tags database, functions, mysql, query Leave a comment

email alert for product availability

August 5, 2022 by Magenaut

I want to give the user the possibility to click a button when the product stock is 0.

Categories Q&A, Wordpress Tags mysql, php, woocommerce-offtopic Leave a comment

What is my error trying to create a new table in the database?

August 5, 2022 by Magenaut

I tried creating the tables in different ways and I always get the same error:
“Error You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ‘( …… at line 1 of the WordPress database for the CREATE TABLE IF NOT query EXISTS”

Categories Q&A, Wordpress Tags customization, database, mysql, table, wpdb Leave a comment
Older posts
Newer posts
← Previous Page1 … Page6 Page7 Page8 … Page11 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress