Skip to content

Get php input values

My goal is to have a WordPress form that when posting, send the input to an API into an ERP. Right now it seems that the values are empty when sending the way I do. In CURLOPT_POSTFIELDS if instead of …

How to get all the selected values from a multiselect input?

I am using Laravel and I tried to used die(var_dump(‘$request->input(‘users’))); to check the data that are selected using a multiselect input. When I selected all 3 users, the output was just showing the last user id like this This is the input. The name was set as user[0] because the in…

mysqli query inside foreach loop- syntax problem

I have the following mysqli query: This is my database table “items”: $response is an API array from where I get the value for the item_ids . I get the following error: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use …

PHP strlen() and if statement not working correctly [closed]

Closed. This question is not reproducible or was caused by typos. It is not currently accepting answers. This question was caused by a typo or a problem that can no longer be reproduced. While similar questions may be on-topic here, this one was resolved in a way less likely to help future readers. Closed 1 y…

Apache Windows 10 ,404 Not Found Error (Wamp)

I’ve installed php, mysql, apache with WAMP for windows 10. When I go to http://localhost there is not any problem, the appropriate page is shown. The server is up and running, but when I try to open …