Posts by Shaolin Fantastic • 546 points
39 posts
-
0
votes1
answer849
viewsQ: How to load data from an XML file into an HTML input field?
I’m trying to upload an XML by uploading it to an object and showing it on the screen. I managed to do it in a Div But I’m not getting to show in Inputs. Follow the process and the code: I choose…
-
1
votes1
answer92
viewsQ: Difficulty Loading Input Data via Ajax
I’m trying to load data via Ajax by typing a code and clicking TAB it automatically searches the BD and prints in form inputs. I ran a test on console.log(data) and the data is being returned but…
-
0
votes1
answer179
viewsQ: Error when trying to perform a Relationship belongsToMany in Laravel
I am trying to effect a relationship belongsToMany in my Model but is bringing the error: Queryexception SQLSTATE[42S02]: Base table or view not found: 1146 Table 'api.codigo' doesn’t exist (SQL:…
-
2
votes1
answer14068
viewsQ: Conversion from VARCHAR to INT
I’m trying to do INNER JOIN but the fields are in VARCHAR. In a field I have cod_authorization = 749831164 And in the other field I have num_aut = 000749831164 Because of the zeroes "Left"…
-
1
votes2
answers399
viewsQ: Remove the last comma from an array of a While
I’m trying to remove the last comma from an Array but I’m not getting it. I have a CSV file in which I read and remove an array with a code to be used in a Where of a Query sql. I’m using…
-
1
votes1
answer241
viewsQ: Group data from a Query?
I do a GROUP BY in a query result and the result comes this way: I wonder if it is possible to bring together in this way? I wonder if this grouping is best done in PHP or Query and how it can be…
-
1
votes2
answers113
viewsQ: Improve a Bank Search
I would like an improvement help in a Search Query today every Search the user makes in the search field I give an OR in my Where I wonder if you have any better way to do this because I will need…
-
1
votes1
answer2555
viewsQ: Difficulties creating update with Laravel 5.1?
I’m trying to create a update with Laravel 5.1 but is bringing the following error: Type error: Argument 1 passed to Illuminate\Database\Eloquent\Builder::update() must be of the type array, object…
-
1
votes1
answer74
viewsA: Insert multiple rows of a single query using FOR
Problem solved with the help of @rray Inside the FOR instead of using: $proposta_ensaios->quantidade = $this->request->get('quantidade_'.$i); $proposta_ensaios->valor=…
-
0
votes1
answer74
viewsQ: Insert multiple rows of a single query using FOR
I’m trying to input a lot of data using FOR but it’s not working. The impression is that he is not getting the data from FOR? The expectation is that this happens:…
-
0
votes2
answers159
viewsA: Query mysql problem, what would be the best way to solve
Use: IFNULL IFNULL(expr1, null) In your case it would look like this: SELECT tables.id as `TableID`, IFNULL(pedido.status, null) as `OrderID` FROM tables LEFT JOIN orders ON tables.id =…
-
1
votes2
answers149
viewsQ: Perform calculations between inputs
I’m using a plugin that when I click on the button + it multiplies the value. It works perfectly but the calculation is only done inside the <span id="price" class="amount"></span> and…
-
5
votes1
answer7065
viewsA: LEFT JOIN com AND no Eloquent Laravel 5
I managed to solve it this way! ->leftJoin('visitante as v', function($join) { $join->on('a.codigo', '=', 'v.id'); $join->on('v.data','>=',DB::raw("'2015-06-01'"));…
-
4
votes1
answer7065
viewsQ: LEFT JOIN com AND no Eloquent Laravel 5
I have a query with Left Join with AND I’m not able to implement it in Laravel 5. A snippet of the query: LEFT JOIN visitante v ON a.codigo = v.id AND v.data BETWEEN '2015-06-01' and '2016-05-31'…
-
2
votes2
answers441
viewsA: Resizing image when inserting with php
You need to use the functions Imagemagick or GD PHP to work with images. With GD, you can do it this way function resize_image($file, $w, $h, $crop=FALSE) { list($width, $height) =…
-
1
votes3
answers357
viewsA: Data bank without foreign key in Laravel
I believe it would be a one-to-many relationship(One to Many) An example of a one-to-much relationship is a product may have several categories You can model the relationship like this: Model class…
-
2
votes3
answers102
viewsQ: Take Report with zero months
I have a query in which I take monthly deposited values it takes everything it has in the base and shows the months that were entered in the base. I would like to do different I would like to show…
-
0
votes1
answer1034
viewsQ: How to bring the radio button checked with a Bank result
It seems such a simple thing but it’s not working I’m trying to bring checked a radio button but it does not bring anything marked the data is being returned from the bank already made the test but…
-
1
votes1
answer181
viewsQ: How to insert multiple rows of a single query using the same ID
I’m trying to make multiple Inserts using the same ID with the Laravel but it is doing only 1 Insert. The idea would be something like this. ped_cod|est_cod|ped_qtde 8 |2 |9 8 |3 |2 8 |4 |2 8 |9 |15…
-
1
votes1
answer508
viewsQ: Show Json data inside an Html Form
I have a Grid with the edit button when I click on it it accesses the Controller and brings the data in a Json and "Theoretically" was to return this data in a Modal. When I type Url .... show/(ID)…
-
2
votes1
answer607
viewsQ: Changing the content of Modal Laravel 5.1
I have a Grid with the edit button when I click it accesses the Controller and brings the data of a certain user in a Modal. But it’s only bringing from the first user I click. Follows the code:…
-
0
votes2
answers277
viewsA: Return Multiple values with PHP jQuery
I solved otherwise created a new function Getuserimage(id) and called the 2 functions in the <a href="#" onclick="GetUserDetails('.$row['id'].');GetUserImage('.$row['id'].');"" ></a>…
-
0
votes2
answers277
viewsQ: Return Multiple values with PHP jQuery
I have a Function that returns me the values of a Grid in a Modal I call the function it makes a Select in PHP and returns me the data within a Modal. Except that besides bringing this data I need…
-
0
votes1
answer503
viewsQ: Fill Modal with Database data
I have a Grid where I click the edit button and it should bring BD data in a Modal but it is not working. Follow the code. Knob Obs. (The Button is bringing the id) <a href="#my_modal"…
-
0
votes2
answers1931
viewsQ: Insert value in Input Value with JS
I’m trying to bring a value that when clicking a button brings in an input that works but the value does not appear inside the Value input so I can’t capture this value via PHP. Follows the code…
-
1
votes1
answer55
viewsQ: Error mounting Foreach Laravel 5.1
I’m trying to set up a filter where I search some options BD I made a foreach to bring this data from BD but is bringing an error: Trying to get property of non-object Follow my code: Controller…
-
0
votes1
answer1378
viewsA: Error uploading Images with Laravel
Problem solved The problem was in the Lines: $destinationPath = '/upload/profile/'; if (isset($fileName)) $dadosForm = $this->associado->user_pic = $fileName; I switched to: $destinationPath =…
-
0
votes1
answer1378
viewsQ: Error uploading Images with Laravel
I’m trying to use Jasny’s Bootstrap file upload(http://www.jasny.net/bootstrap/javascript/#fileinput) to upload photos and save the photo name in the BD with Laravel 5.1 but not working. Apparently…
-
-2
votes1
answer101
viewsQ: Error picking up data for a view
I’m trying to bring the data to a view to perform some tests on Laravel but it’s not working Controller class ProfileController extends Controller { private $aluno; private $request; public function…
-
1
votes2
answers1956
viewsA: HTTP 500 error when putting an orange project5.1 into production
In case someone has the same problem I’m still there as I was able to solve. I created a file .htaccess with the following code. RewriteEngine on RewriteCond %{HTTP_HOST} ^meusite.com.br$ [NC,OR]…
-
2
votes2
answers1956
viewsQ: HTTP 500 error when putting an orange project5.1 into production
I developed a project in Laravel 5.1.In Localhost everything works fine, but when I go up to the client server, which is not shared and is with PHP 5.6, it doesn’t work. Error appears HTTP ERROR…
-
1
votes2
answers436
viewsQ: Problem with Laravel Routes 5
I organized my Controllers by folders: Ex:Dashboard/Concessesionaria/Brands -> Carroscontroller.php In Rota I tried to inform thus Route::get('Painel\Concessesionaria\Marcas', ['as' =>…
-
1
votes1
answer344
viewsQ: Difficulties in Route Creation and Laravel Controller 5.1
I created a CRUD with Modal is working all right but I created request form data display, queries with BD all within Routes, I do not think very cool would like to pass these features to the…
-
1
votes2
answers245
viewsQ: Data Display Issues Laravel 5.1
I’m a beginner in Laravel and I’m trying to bring data from a BD with multiple Postgresql schemas with Laravel 5.1 and is bringing me an error What configuration should be done for the model to…
-
0
votes1
answer1903
viewsQ: pgsql connection problems in Laravel 5.1
I am trying to connect to the pgsql database by Laravel 5.1 but an error is appearing: Pdoexception in Connector.php line 55: SQLSTATE[HY000] [1045] Access denied for user 'root'@'localhost' (using…
-
1
votes3
answers31765
viewsQ: How do I place a background in a container in Bootstrap?
I’m trying to put a Background in a Container someone knows how to put or some other solution? I did not put in Body because the image needs to be Responsive.
-
1
votes1
answer159
viewsQ: Combobox Populating Cities in Magento
I have a Combox that I created in PHP that populates cities of a JSON file and is working 100%. I needed to embed this combobox in a Magento page but I’m not getting it because I have several JS,…
-
2
votes1
answer488
viewsQ: Merge Results of an Array
I have a PHP application that takes a Json file and creates a timed array: city | quarter | city | complement | addressee | state header('content-type: application/json; charset=utf-8'); $file =…
-
0
votes3
answers384
viewsQ: Multilojas Different Checkouts
I have a client who owns 2 physical stores that will be in the same virtual store. A team takes care of the clothes part fitness and a supplement to. The customer would like 2 different stores in…
magentoasked Shaolin Fantastic 546