Skip to content

Tag: javascript

Deleted images still being shown

For some reason, my website still showing images that were already deleted from the specified folder and I have no idea why that’s happening and how to solve that. Process: When the button to delete all admins is pressed, it calls a PHP function that truncate the tables administration, adminimg and logi…

How to loop through div per div

Horrible title aside, I currently have a dynamic form that has tasks, and per tasks, statuses. The amount of tasks and status can vary. What I’m trying to do is submit the task name, status name, and colors tied to that status. I’m submitting the form via js and the only different thing is creatin…

Laravel update all users age by x

I want to update all users in my database with an age value which I get from my request. How do I manage this? I somehow need the current value in the db and multiple it. Answer Let’s assume that the name of the field in your $request is multiple, you can iterate over your customer records and update ea…

Sanitizing whitespace in generated URL parameters

I’m having an issue with a PHP page that generates an HTML document. On the page, there is a form that has a <select> box, and each <option> inside has a value with the URL parameters to use when changing the window location when the form is “submitted”. The issue is that I notic…