Skip to content

Tag: mysql

How can I overwrite my file images in laravel

I would like to ask how can i overwrite/update my images inside the form and store in database? I tried doing it but it is not working, i get the id correct but when i upload new image and text, it is not updating my old file. Below i attached my code. company controller edit modal for company I might

how do i count the amount of rows under a username?

I am making a forum and on the homepage I want to make some kind of a leaderboard where you can see the top 10 posters + and how much they have posted. I want to only get those users out of the database. Ill add a picture of my database. Please let me know. Database Answer I don’t know

MySQL database is not receiving any data in PHP

I created two classes: a class called index.php for a user to input data such as: name, email, phone number and address. And the other class called model.php, which must send the information that the user typed into the MySQL database. However, when a user enters the information in the graphical interface, an…

How to retrieve Mysql data from todays date using PHP

I am using the PHP time() function to get the current time and Insert it into the database. I can also retrieve date by setting the value in a variable and doing something like: date(Y-m-d, $time) But now I want to get a result from the Database on the current date compared to the time inserted in the Databas…