I am trying to use Azure Auth MFA for my PHP application, everything seems to be working fine and I get True returned when I echo $result at the end of script. But how do I get user details from here, for example the users login ID, AD ID I have tried client principal name, but it does not return
Tag: php
Delete a HTMLtable row using AJAX
Frameworks used: JavaScript, AJAX, HTML. Cannot use JQuery Have to display SQL table on page Last column of the table should contain an image which acts like a delete button On clicking that delete image, the row should be deleted from HTML table and SQL table In my code the onClick is not working HTML code t…
How to transform this array in php? [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year. Improve this question I want to sort the array by the “biomasse” and “solar̶…
Sum of amount for each date having ‘type’ column in sql
I have table expense_incomes, the structure for table is: I want the sum of expenses and incomes in two different arrays groupBy date. I have tried this code. (In the above Example) I want to push expense into expense_array and income into income_array for 2021-04-02. What I am getting now: Expected Array Str…
Display a php variable’s color inside , depending on the value
I want to scan the variable value $answer, and depending if it’s bigger than 6, to be displayed as green, otherwise, as red. thank you Answer If you mean color green or red, here you go… Preview: https://3v4l.org/0ejhC
FormRequest message in laravel 8 not show messages
In my laravel 8 app I am trying to create two files CreateUserRequest and updateUserRequest to use personalized validations. In the method rules I´m calling my model’s variable $createRules but when I send my form, this don´t send, don´t show messages, error… Nothing. I have attached CreateUserReq…
How to redirect to specific URL?
I have a route for tenants name like that: And I want to make the default of my domain start with the word “site”: My code: The problem that I’m facing with this code now is when I open the domain it redirects me to tenantName route, not to the home page that I made! How can spreate the rout…
Website is throwing errors out of nowhere?
I literally don’t know what is causing this error, maybe one of you do. First of all I would like to state that, I have a two sites up and running with the exact same source/db, one is working fine. So out of nowhere errors came up on my second site (see picture below) causing Dropdown menus, charts and…
Laravel 8: Property [name] does not exist on this collection instance
I’m working with Laravel 8 to develop my project and in this project, I have a table named hostings which it’s migration goes here: And now I want to return some results from the DB and show them on blade, so I added this: But now I get this error: So what is going wrong here? How can I fix
PHP reg expression to detect variable in string [closed]
Closed. This question needs to be more focused. It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post. Closed last year. Improve this question I could never figure out reg expressions, no matter how hard I tried. Need s…