im doing a a basic form where the user enters data, it has three php pages, one with the html stuff, second one with the a class called registration, the third one is called validation.php it has the error handlers. if the user typed something wrong, i want to display an error on the same page, that’s w…
PHP file upload works with HTTP form but not with Python script
I’m currently achieving a python project in which I need to have a text file uploaded through HTTP to my server. At first I was using for convenience an HTTP form and the upload has been working fine. But now, I want it so I don’t have to manually select the file and just have my Python script sen…
Why am i receiving error 404 when fetching video data?
I’m trying to display the video which is in mp4 format of the code’s folder. When i try to fetch the video by clicking on the button it shows an empty space but doesn’t display the video.display of …
How to write this if..else conditional statements with Ternary Operators: [closed]
I want to write this if..else statements with ternary operators: if((($request->city)==”98″)&&($cartPrice >= 300000)&&($request->province)==”8″)){ &…
Symfony autowire/autoconfigure not working
I created a symfony 5.3 api. My plan is to inject the “EntityManager” via “EntityManagerInterface”. Error that comes: My services.yaml My CreateUserAccountController.php in src/Controller/: My composer.json: I know that I dont use the Manager, but it doesn´t work for me. The webserver …
Query string keeps appending but it shouldn’t
So my problem is when i send an email with a link to reset the password the query string gets appended each time. For example: 99cb65f44c7acf7f80610e92358ca7ce006b852fb9d7be716154c0fe5a954867b87a4b281a7b42f5208dbbbac0a6d3de7444575b41b6a307a2fdd00e3b6d2cae <= First query string as i want to have it Then whe…
PHP Need nested array values to dump into html table cell
I have a stdClass Object array with nested User arrays as a value that I would like to display in a table cell. I am struggling and have exhausted a lot of time. I am hoping to get a shove in the right direction if possible. The image below will show what I am trying to do. Here is what
Remove characters from beginning and end string
I want to ouput only MYID from URL. What I did so far: output: https://whatever.expamle.com/display/MYID ouput: MYID?out=1234567890?Browser=0?OS=1 How can I combine this? Thanks. Answer When the string is always a Uniform Resource Locator (URL), like you present it in your question, given the following string…
How can I get date day by day?
I’m beginner in PHP and I’m trying to learn. I want to get the date of the next four days in Laravel. I tried like this but it returns the date four days later. I want to take all the next four days. How can I show all the next four days in the blade? Answer I hope this will
Laravel Livewire not persisting data in array when updating
I have a property called public $items = []. This can have multiple nested arrays, ie: $items.1, $items.2, $items.3 and so on. Each of these sub arrays needs to hold at least two pieces of data. My issue is that in my view, I have two inputs bound to these sub properties. I then add a new array entry based