Skip to content

Tag: mysql

Style MySQL Output in PHP with CSS

I have a MySQL Database and it prints live ne activities with PHP on my website. Now I like to style these text outputs (color, position, size) but I don’t know how. Do you have any ideas? <?…

using “INSERT INTO” statement in php code doesn’t work

I’m trying to build a database for a bookstore with 3 tables: Book, Volume and Publication. I’m using mysqli() and the code neither works nor echoes any errors. Answer The problem is that you are checking with === TRUE. As PHP Manual says: Returns FALSE on failure. For successful SELECT, SHOW, DES…

Remove duplicated imported orders in Woocommerce

I have duplicate orders in Woocommerce and I would like to delete them to only keep unique for clean bookkeeping. I am not good at SQL, I wrote this request but it lists both duplicate when there is a duplicate. which gives me 307 results. How can I write the right request to delete the duplicates and only ke…