My real problem is that I am sending an Ajax Jquery Request to an API of mine, the server response is ‘Argument #1 of ::setDate() must be DateTimeInterface, string given’ I tried to cast but it was useless. My Ajax at JQUERY: My API at PHP (Symfony’s controller): The Object I’m sending: Answer Your entity Distribucion probably has a setter
Tag: jquery
Show additional information depending on shipping selected
I would like to show additional information/order notes when a specific shipping method was selected. I have multiple shipping options and when selecting a specific one I need the user to provide a different address in the note, please see the images below: These are the available shipping options: I want to show this (and it has to be a
I am always getting an error everytime i try to add data in db: SQLSTATE[42703]: Undefined column: 7 ERROR: column
So, theres already a pre-made table in the database. Now, I am trying to connect my project to that specific table in the db. but everytime i try to insert data, im getting this error “SQLSTATE[42703]: Undefined column: 7 ERROR: column “updated_at” of relation “applicant_account_tbl” does not existnLINE 1: …”, “last_name”, “birthdate”, “email”, “password”, “updated_a…n ^ (SQL: insert into “applicant_account_tbl”
How do I filter with dropdown list? PHP and SQL
We are trying to filter based on the tags or the dropdown menu, we are trying to create a blog website that has tags and those tags can be used to filter the posted content on the homepage Tags dropdown menu:. Here should be the content in the page: Here should be the content in the page: Answer Set tags
Split a comma delimited string into an array and display on html page
basically I’m making a page where the information from mySQL database will be displayed. I have a column named topics in the database where the string (VARCHAR) goes like this: Marketing, Business, Law, Medicine, … I’m trying to break up this string after a comma and display them in a single line one by one like this: I already have
Passing 2 parameters in ajax url in Laravel route
I need help, my ajax request doesn’t work if i use 2 parameters in url but if i only use 1 parameter it works perfectly fine. There isn’t error in the first one but i think it does not reach to the controller because the output in response is undefined. this is my view this is my ajax request when
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- change your data format in
I use ajax to send data but cannot receive data back from php file [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 4 months ago. Improve this question
Submit and POST “True” or “False” to a series of text questions presented one by one taken from a php array
new to forum, AJAX and JQuery. A little experience of PHP and JS. I’m trying to present a long series of questions (400+) one by one in an input text field on a form with 2 submit buttons labelled “True” and “False”. I need one question to be presented at a time, then record the True or False result as
Cannot send data to database using Ajax and Laravel
I am trying to insert data to database through Ajax And Laravel. But when I click the submit button, nothing happens at all. I tried to see if the javascript is reachable at the first using “Alert” and yes it is. But the part of $ajax is not reachable at all. Here is the code: Html: Javascript: for the controller