I have a query.So when i try get data from database,it show me null. $heading = DB::table(‘heading’)->where(‘heading.post_date’,Carbon::today())->first();
Category: Questions
how to take string from this type of data?
a:2:{i:3;s:16:”GLS PARTICULIERS”;i:1;s:16:”GLS PARTICULIERS”;} I have this type of data in multiples rows. What I want is just to take out the name in ” ” that’s it I …
Laravel 8: Nexmo not sending code to mobile number country pakistan (Cannot send message without a sender address)
I am using laravel 8. I want to send a notification SMS through nexmo when user register, but it doesn’t work. It says Swift_TransportException Cannot send message without a sender address. I cannot …
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 table rows displayed by
Getting XML node names without duplicating in simplexml_load_file
I’m getting the node names of an XML using this code: $url = ‘https://www.toptanperpa.com/xml.php?c=shopphp&xmlc=e7ef2a0122’; $xml = simplexml_load_file($url) or die(“URL Read Error”); …
Set navbar selection to class active while also having the Login link switched to Logout if signed in?
I’m trying to figure a way to have “Login” be set to logout, when a user is signed in, but also having their current navbar selection be highlighted in blue? I moved the html in the php …
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”. For example: The “summe” should be sorted by the years.
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 Structure: Answer I believe you want an aggregated
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 CreateUserRequest, my model and controller’s store method: CreateUserRequest Model Controller’s store method In the