Skip to content
Advertisement

Tag: php

Why won’t my simple get request with axios return what the controller’s returning?

I’m learning Laravel with React.js but I can’t figure out why my simple get request won’t work. I get a 404 error. I’ve seen a similar question asked on SO and I’ve tried running composer require barryvdh/laravel-cors on the command line but it still doesn’t work. How can I rectify this? Here’s react code: Here’s api.php Here’s MailController.php Answer your

export generated data to excel with php/js

I have 2 date input fields(startdate,endate) that a user can selected. Once selected, data will show that is registered between the 2 dates provided by the user in a table format. how can I export that data that is shown in the table to excel with a button click without third party plugins ? code that I used : Answer

How to display data in textbox from database MySQL based on selected option?

I have a table “tb_seri” in MySQL, with columns “id_seri”, “nm_seri” and “value_seri” So, I want to select “nm_seri” in the select option, and then “value_seri” will appear in the textbox afterwards based on “nm_seri” selected Here is the code to select “nm_seri” from the database And I’ve tried various codes from here, but I’m still confused. And this textbox

How to send an email through a web page [closed]

Closed. This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 2 years ago. Improve this question I am developing a website and testing it on my local server by Xampp. In my website I want to send an email to a

how to get the responseText from echo in php

I’m trying to return a value from PHP to JavaScript through responseText. The idea is if mysqli_num_rows($rslt) != 0, responseText = 1, or if mysqli_num_rows($rslt)= 0, to do an insert and responseText = 0, and then in JavaScript I get the responseText. How can I achieve that, because I tried with echo, but I couldn’t find a solution. JavaScript code:

Advertisement