Skip to content

Tag: mysql

Delete MYSQL DB Entry via PHP / HTML Button

Hey. Iam learning PHP and MYSQL atm. So i wrote already code which will display everything from my database nicely into HTML. I create also a button which says Delete. Now i want to write a Code which actually Deletes the specific entry (all have an ID ) but iam kinda lost. i know the command is: $sql = &#822…

Database Schema Treeview PHP MYSQL

I am trying to create a treeview (ideally using bootstrap) from a MYSQL database table that is essentially a data dictionary structure. Every example I have seen creates a parentid in order to create the json/array input for the treeview however my data structure has all of the hierarchy levels on each line. …

php loop problems

noob problem: i have some issues with a loop in php…here is the code (i used the same methodology for other pages and it works); the code it is supposed to display the names of the products from a order, it works, but it is not showing the very first product , i don’t know why : and here is

Inserting date in null [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 1 year ago. Improve this question I am inserting date. It works when date is set, otherwise, it doesn’t work. DateBirth t…

PHP Reporting on Hours Worked

I was wondering if anyone could help me please? I have a PHP employee timesheet that tracks hours they have worked by entering the start and end time, code is below; Is there anyway that I can generate a report and get the total hours worked for each employee in a 4 week period please? Many thanks 🙂 Answer As…