Skip to content
Advertisement

Tag: php

Custom field in multiple selection

I’ve started Wordpress 1 month ago and i’ve just done my first hook into the website (just to add/remove an estimated delivery date). Once i’ve had this I was thinking that I’ve broke the website (LMAO) but it was just a postmeta problem. The postmeta value just need to be added on on every single products and be turned to

How do I use ROW_NUMBER in MySQL to check number of rows per day per employee?

I’m storing punch-in and punch-out data in a table that looks like so: id empid punchtime 74 4 2021-08-04 17:11:54 171 4 2021-08-06 13:47:45 202 4 2021-08-09 10:14:01 271 4 2021-08-09 18:20:01 308 4 2021-08-10 11:14:54 343 4 2021-08-10 14:46:21 349 4 2021-08-10 15:22:10 380 4 2021-08-10 18:10:58 406 4 2021-08-11 10:13:48 I want to check for punch in vs.

NULL changes to 0 when added to the db

Ok I have tried everything I can think of, I couldn’t make it. I am creating some inputs like this: And then when I get the $_POST I am checking if the input is 0 or “” and setting it to NULL. And I am adding to the DB with this But when the query runs, qty6 (for example) that

Advertisement