Skip to content

Tag: request

What could be wrong with this request in AJAX and PHP?

I’m trying to call a PHP page passing parameters with AJAX. I can see that the page is called, but the $_REQUEST doesn’t take any parameters. If anyone can help me, I’d appreciate it. Thanks! My AJAX is that: In the PHP Page, I have this. Always the answer is failure. Thank you! Answer 1- ch…

My SQL request work in SQL but not in PHP

I’m trying to make an unique request to insert multiple element in my database to not make multiple request. Here is my “generated” request, which work in SQL (tested in PHPMYADMIN). Generated by this code. But I get this error in PHP Do you know why this request does not work when I try to …

PHP Laravel : $request->hasFile() is not working

I have a form where i get the title,content … and an image. When i dd($requests->all());, It returns the following which is correct. Here is my code for image processing: But the img DB table field gets null. The if($request->hasFile(‘imagePost’)) is not getting the field. What have i …

Merge request not working

I am trying to replace the ‘pic’ value, which is set as an array when it comes in, with an image file name but the merge does not seem to be working. I am not getting any errors in the log with the below code. I guess I am not allowed to embed pictures yet so there is links below.