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 1 year ago. Improve this question Hello i’m really new using maatwebsite already read the documentation but cant find it,…
php tree get list of all parents of child node
I want a list of all parents of the child node. I am searching but I am getting all child nodes of the parent. my array look like and my desired output is, I give input the child node Id and It will return all the parents. for example I will give child ID ‘raja’ and It will give output
LARAVEL 7, Undefined variable, cant pass Variable from Controller to View
im new at Laravel, and im making a CRUD following this tutorial: https://appdividend.com/2020/03/13/laravel-7-crud-example-laravel-7-tutorial-step-by-step/ first i made it on my own, and then i just copied the code from GitHub, in both cases im getting in the variable inside the @foreach: FacadeIgnitionExcept…
Yii2 custom validation to array rule
I have a custom form model in yii2, and i have a rule for an array property: public $permissionEmails; public function rules() { return [ [‘permissionEmails’, ‘each’, ‘rule’ => …
Dynamically add columns to html table and sending input to database
I have a table in an HTML form in which the total columns depends on the user. The additional columns are added with a button click. The rows that come with the added columns are supposed to be array inputs which will be sent to MySQL database once the form is submitted. I am new at javascript and jquery. I
json_decode generates string instead of object
I need to get a JSON Object from Database, convert it to php object and foreach the key=>value pairs. The JSON Object is stored with JSON.stringify(obj) in MySQL text field. Afterwards i get the …
get PHP function (Symfony 4.2)
I have the following error that I do not understand: “Attempted to call function “pasPointer” from namespace “AppController”.” The code that goes with it: public …
PHP namespace & use Fatal error class not found even when i already specified class with use
I’m running into trouble with namespace in PHP. For an example I have a file like this namespace AppModelsAbstracts; abstract class Country{} and then another file like this namespace AppModels; …
How to pass two or more parameters to default controller of Codeigniter?
I want to pass two parameters to the default controller of Codeigniter. Controller = Post Function = index($parm1, $parm2) Using the below method by setting in routes, i am able to pass only one …
Uploading images to MySQL (blob) with PHP
For security reasons I’ve decided that uploading user profile images to a database, rather than just a folder and uploading the image addresses, would be a good idea. I’ve never dealt with file …