Skip to content

Tag: mysql

mysql best way to count orders ordered by status

For my panel I update my “status-buttons” with count-numbers. F.e. New 2, backorder 5, cancelled 3, shipped 201 In the back, I now count them like this: I know… “Use prepared statements”… I will, in the updated version of my script 🙂 But is there an easier way to get all th…

How can I add more categories to the | select * from users, and more

I am currently having an error which I do not understand how to solve it and the truth is that I have been trying since yesterday and I do not get any solution. Could anyone help me please? FILE: topics.php FILE: db.php FILE: edit.php ERROR: Fatal error: Uncaught Error: Call to a member function bind_param() …

Why I cannot update the data?

original data echo data upated data does not updated into databse Controller Update I got the id from the form and pass the value to show the data on the next page. It will show certain data based on the user click which row button. Model Update I have passed the id when updating the data, and It will not

Symfony Imageboard post database schema

I’m making imageboard in symfony. I am curios if I’m doing it in the best way. There are threads and posts just like in normal forum. Thread 1 post 1 post 3 Thread 2 post 2 post 4 The problem is I made two entities Thread and Post. It’s easy to get all posts from one Thread but there are