Posts by Cristiano Facirolli • 83 points
34 posts
-
-4
votes0
answers37
viewsQ: SOLVED - How to read this JSON in PHP
Gentlemen, I am receiving the JSON via URL and I try to recover the values via PHP, but always this returning me the error: Warning: foreach() argument must be of type array|Object, string Given in…
-
1
votes1
answer540
viewsQ: Customize radio input
Good afternoon! I am editing an OPENCART store and need to customize the input radio shoe size, doing as follows: .input-option356 { list-style: none; margin: 0; padding: 0; } .input-option356:after…
-
1
votes1
answer58
viewsQ: Access JSON values via PHP
Sirs, I am trying to access the values that are inside the house "values", recovering the value and the Odd but without success, I am creating so: $json = json_decode($response); foreach…
-
-1
votes2
answers52
viewsQ: How to read the {1x2} JSON Jquery key
Gentlemen, excuse my ignorance but how can I read a JSON key that starts in number, example: "1x2": { "outright": false, "interwetten": { "odds": { "1": 6.4, "2": 1.55, "X": 3.95 }, "bookmaker":…
-
2
votes1
answer350
viewsQ: JQUERY/AJAX duplicate JSON results
Gentlemen, I am making a query in a URL that returns me the results of games, but this showing me the duplicate results, could give me a light of where I may be missing? Here where I consult: var…
-
0
votes2
answers102
viewsA: Recover JSON data via AJAX and PHP
[RESOLVED] After several hours trying to understand where I was going wrong, I was able to solve it and stayed as follows:…
-
-1
votes2
answers102
viewsQ: Recover JSON data via AJAX and PHP
Gentlemen, I’m setting up a system where he will consult an API and show the results within Divs. But I’m stopping this result, only by the console.log I’m not able to play inside the Divs. Follow…
-
-1
votes2
answers352
viewsA: Read JSON multidimensional array via PHP
One way to go through the entire array is: foreach($json_decode['result'] as $x=>$x_value){ foreach ($x_value as $y=> $y_value){ if($y_value['league_name']=! ''){ echo…
-
-3
votes2
answers352
viewsQ: Read JSON multidimensional array via PHP
Gentlemen, I’m having difficulty reading a JSON that comes via API, I receive it in the following way: $json_file =…
-
-1
votes1
answer77
viewsQ: ERROR WHILE UPLOADING Laravel
Sirs, I am having the following error "The "/tmp/php63F4kk" file does not exist or is not readable." in Laravel, I am entering the information as follows: if($request->hasfile('foto')) { $image =…
-
2
votes2
answers239
viewsQ: Consume JSON data from Mysql PHP flock
I created in my MYSQL 3 fields ID, Cliente, Produtos where they are registered via JSON the information of Cliente and the produtos that he selected. JSON Client { "nomecliente":"Cristiano",…
-
0
votes1
answer50
viewsA: Mount Mysql query in Laravel
The resolution was $valores = Emprestimos::select([ DB::raw("DATE_FORMAT(created_at, '%Y') as year"), DB::raw("DATE_FORMAT(created_at, '%m') as month"), DB::raw("count(id) as total") ])…
-
0
votes1
answer50
viewsQ: Mount Mysql query in Laravel
Gentlemen, I have the following query in mysql SELECT DATE_FORMAT(created_at, '%Y') as 'year', DATE_FORMAT(created_at, '%m') as 'month', COUNT(id) as 'total' FROM emprestimos GROUP BY…
-
3
votes3
answers2619
viewsQ: Vscode + GIT + Flutter Configuration
Sirs, I am starting the studies in Flutter, I did the installation of Flutter, Dart, GIT and Vscode, when I will start the development Vscode returns me the following error: [undefined] flutter…
-
0
votes1
answer33
viewsQ: Path with Laravel URL parameters
It’s a silly question, but I’m racking my brain. I have the url subcategory/sessao/3/1/Facirolli04 where they are as follows, 3 - would be the category 1 - would be the session Facirolli04 - would…
-
1
votes1
answer76
viewsA: Error while displaying Laravel Relationship data
Solution was to change the field of return of Model Products public Function categoria() { Return $this->belongsTo('App Models Categories', 'categoria_id', 'id'); }…
-
0
votes1
answer76
viewsQ: Error while displaying Laravel Relationship data
Gentlemen, I am creating a relationship between 3 tables, the product that takes category values and sessions, but this always returning me the following error: Trying to get Property of non-object…
-
2
votes1
answer444
viewsQ: Error when running php Artisan migrate
I am trying to create the tables and this giving the following error: BadMethodCallException : Method Illuminate\Database\Schema\Blueprint::number does not exist. at…
-
0
votes0
answers170
viewsQ: Error in Laravel 5.7 validation messages
I am working with Laravel validation messages, but always this returning me "validation.min.string", I stopped importing something? Controller $this->validate($request, [ 'telefone' =>…
-
1
votes1
answer74
viewsQ: Set colors in Google Geochart Laravel?
I’m trying to define the colors of the Brazilian states, which are coming from mysql via json the information, but I’m not having resulted in the return of colors. Ex.: São Paulo in color Blue -…
-
2
votes1
answer91
viewsQ: Can I pass 2 Laravel array_encode?
I can pass 2 json_encode in a single function in the Laravel? What is the best way to return 2 JSON different? Where 1 consults the table Products and the other the table States. Look at this…
-
0
votes1
answer149
viewsQ: Doubt in the use of the lavacharts library in Laravel consulted Mysql
Gentlemen, I am using the Google library to Lavacharts, but I have the following result: On my controller I’m doing so: $graf = new Lavacharts; $valor = $graf->DataTable(); $valores =…
-
0
votes1
answer54
viewsQ: Problems with Laravel Charts, always class error not found!
Gentlemen, I’m using the Laravel 5.7 and the following problem Class 'ConsoleTVs\Charts\Facades\Charts' not found I did his installation correctly: composer require consoletvs/charts added in the…
-
1
votes0
answers43
viewsQ: Help with duplicating content
I’m duplicating a div with content that is filled via a form on the same page, but when it duplicates the functions in jQuery do not work in this new div that was duplicated, the functions continue…
-
1
votes0
answers43
viewsQ: Laravel + Passport + Vue - Not finding
Gentlemen, I’m starting to develop an application using Laravel’s Passport method, but it’s not finding the VUE library. follows an image with the return of the browser: js file that imports the VUE…
-
1
votes3
answers1316
viewsA: Return of PHP Query in Ajax
The error was due to want to run the.php file inside another folder, fixed with the help of @Israel Merljak
-
0
votes3
answers1316
viewsQ: Return of PHP Query in Ajax
How do I get the PHP query values in AJAX? AJAX $.ajax({ type: 'post', dataType: 'json', url: 'listaGabaritosSelecionados.php', success: function(url){ $('.retorno').html(url); } }); PHP $mysqli =…
-
1
votes0
answers79
viewsQ: Error when registering user in Ajax Quick Checkout FREE opencart
Good, I’m trying to install Ajax Quick Checkout FREE in my opencart store 3.0, and I’m having the following problem, see if you can help me: The installation runs normally, I go to front-end mode…
-
1
votes1
answer256
viewsA: Access Json Multidimensional PHP/Laravel
I was able to access by print_r, but to visualize can not always returns me the error: changes to the controller.php return view('ler')->with('dadosJson', $dadosJson); return by print_r Array(…
-
1
votes1
answer256
viewsQ: Access Json Multidimensional PHP/Laravel
I am trying to access a multidimensional Json via Windows and I am not getting the expected result, I need to access phases->games->data->2017-05-13 I will post the code below to find a…
-
0
votes0
answers89
viewsQ: Laravel Routes 5.6
Gentlemen I’m having trouble setting the wheels and returns me the following error: protected function methodNotAllowed(array $others) { throw new MethodNotAllowedHttpException($others); } I’m doing…
-
0
votes1
answer68
viewsQ: Error between account in 2 tables
Sorry I wouldn’t experience in Latin, I’m starting the studies and need to consult a Mysql table according to the value of another table ex.: Tabela Sessões | id | nome | | 1 | João | | 2 | Fabio |…
-
2
votes1
answer825
viewsQ: Call foreach result Controller checkbox and show in view
I need to recover a method in the controller and display in the view, Controller namespace App\Http\Controllers; use Illuminate\Http\Request; use App\Models\Categoria; use App\Models\Sessoes; class…
-
-2
votes1
answer55
viewsQ: H3 inside table email marketing
Talk guys, I need to apply an H3 inside a table, on a td but at its bottom position. Because I have an image and I need to play a title for the image. I tried with the position application but it…