Posts by Jonathan de Toni • 1,260 points
79 posts
-
0
votes2
answers171
viewsA: Sorted list PHP+AJAX
Just use the command SQL Order By: $sql = ibase_query("SELECT NOME FROM TB_CLIENTE WHERE ID_CLIENTE LIKE '%".$id."%' ORDER BY ID_CLIENTE ASC"); This way select will bring the data in an orderly…
-
2
votes4
answers1576
viewsA: POST API Rest JSON
If you use php, you can format it as follows: $json = array('nome' => $_POST['nome'], 'pw' => $_POST['password']); $json = json_encode($json)
-
0
votes3
answers1244
viewsA: Add button to add fields
The solution was to make mine div dynamic. HTML <div id="dynamicDiv<?php echo $_Indice ?>"></div> Javascript $(function () { var dynamicDiv = ('#dynamicDiv');…
-
0
votes3
answers1244
viewsQ: Add button to add fields
I’m trying to implement a button to add extra fields, in case I’m creating an activity report where it contains 5 fields. When the button is clicked it adds 5 more of these same field. Currently I…
-
0
votes1
answer69
viewsA: Is there a package services in the MVC standard?
Usually this type of service is in a folder called config, or app->config. The exceptions, which in my view would be files from a framework for example, would become vendor. This type of model is…
mvcanswered Jonathan de Toni 1,260 -
4
votes3
answers2065
viewsA: Link to call in phone numbers
You can try: <a href="tel:55-5555-12345">(55) 5555-12345</a>
-
3
votes2
answers3284
viewsA: Create project in Laravel in previous version
Try to use this way: composer create-project --prefer-dist laravel/laravel blog "5.2.*" Method passed straight from the documentation of the Larable…
laravelanswered Jonathan de Toni 1,260 -
0
votes4
answers320
viewsA: How to load a project in Laravel in an old version?
You can try using the commiserate: php composer create-project laravel/laravel nome_do_projeto "5.4" Or directly in the Composer.json file: "require": { "php": ">=5.6.4", "laravel/framework":…
-
-1
votes1
answer957
viewsA: Change bootstrap menu according to page width
You can take this treicho out of the code: <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1"> <span class="sr-only">Toggle…
-
0
votes2
answers343
viewsA: How to clone a second branch using the same directory as the first cloned branch?
You can use the command to work directly with the branch: git checkout -b [branch] [nomeremoto]/[branch] Or if you want to create another branch and merge. Creating the branch: git branch nomebranch…
gitanswered Jonathan de Toni 1,260 -
0
votes1
answer341
viewsQ: Error creating zend framework module
I created a new module in zend, but it gives error 404. modules.config.php return [ 'Zend\Router', 'Zend\Validator', 'Application', 'Album' <-- módulo que foi criado. ]; module.config.php…
-
2
votes1
answer680
viewsA: Redirect Route direct to view
Not wrong, but also not cozy. You can pass when creating the route: Route::post('/sobre-nos', function(){ return view('sobrenos'); } The "correct" would be to call the controller:…
-
1
votes2
answers135
viewsA: Error comparing PHP-Mysql dates
There is a field of the type date html: <input type="date"> This will standardize the information passed in the field, rather than being valid later if it is all numbers for example. In the…
-
1
votes2
answers2570
viewsA: Gitignore does not work
Just put the name of the folder or file with extension: /node_modules /public/hot /public/storage /storage/*.key /vendor not ignore will normally show, as the name says.…
gitanswered Jonathan de Toni 1,260 -
1
votes1
answer493
viewsA: How to change the font-family of a single div with . tff file?
After downloading the font, will vim some files with extension . ttf, . otf among others. Add these files to the project folder, usually I paste them into public/fonts. To add and use the source in…
-
1
votes1
answer513
viewsA: Different Y axes in Highcharts
You can implement a standard range value between the Y-axis values: yAxis: { tickInterval: 10 } In your case just use all the code referring to the Y axis and implement the chunk changing to the…
-
2
votes2
answers563
viewsA: How to Put Caption Out of the Highcharts Chart
In the documentation you can make this modification with the following code snippet: yAxis:{ labels: { x:20 } } Would look this way: yAxis: { //--- Primary yAxis title: { text: metrica }, labels: {…
-
0
votes2
answers130
viewsA: Error in Javascript
Try to put it this way: $resultado = mysqli_num_rows($resultado); if(!is_null($resultado)){ ... Assuming you didn’t urge class mysqli. Take the example in this page, interpreting your code,…
-
1
votes1
answer47
viewsA: Date on a Highstock Chart
I was able to solve by concatenating a string in front of the strtotime($value->DataHoraPrevisao), being as follows: $valorTendencia[] =…
-
0
votes1
answer47
viewsQ: Date on a Highstock Chart
I’m trying to create a graph with the framework Highcharts, to create a chart, which framewor itself makes available, highstock. I’m trying to generate a graph like line, the values are correct, but…
-
1
votes1
answer95
viewsQ: Highcharts: Visible does not work
I’m trying to remove the Xaxis with visible: false as shown in documentation, but it’s not working. The version of Jquery is: v1.10.2 (2013-07-03). The Highcharts version is: v4.0.3 (2014-07-03)…
-
1
votes1
answer37
viewsA: Php variable for javascript
To solve I used the constant JSON_NUMERIC_CHECK, of function json_encode, staying that way: $valorTendencia[] = $value->Valor; $encodeValorTendencia = json_encode($valorTendencia,…
-
0
votes1
answer37
viewsQ: Php variable for javascript
I am using Highchart to create charts, however I am not able to pass the value of data through a php variable: series: [{ name: 'Tendência', data: <?php echo $encodeValorTendencia; ?> },{…
-
2
votes1
answer294
viewsQ: Error Code: 1054. Unkowm column
I’m looking for a value from an account I made in SQL: (Valor - (select Visibilidade)) AS Diferenca When I try to consult: Diferenca <= 500 It presents the following error: Error Code: 1054.…
-
0
votes1
answer160
viewsA: Correct image and text positioning
You can do it this way: <div class="container-fluid"> <div class="col-md-6"> <img class="img-bus" src="assets/images/img.png"> </div> <div class="col-md-6"> <p…
-
0
votes1
answer47
viewsQ: Pass value by link
I need to send a value through a link to another page: <li><a href="" onclick="getPasta()" id="icons"><?php echo $this->translate('Download');?></a></li> I tried to…
-
1
votes2
answers45
viewsA: Variables are not receiving input value in PHP
Try to put the method="POST" in the form tag: <form action="contato.php" name="sentMessage" id="contactForm" method="POST" novalidate>
phpanswered Jonathan de Toni 1,260 -
0
votes2
answers293
viewsA: Accentuation in the directory
I found that the problem may be in another point of the code: if(isset($novocaminho)){ if(is_dir($novocaminho) == TRUE){ $diretorio = dir(utf8_encode($novocaminho_implode)); while (($arquivo =…
-
1
votes2
answers293
viewsQ: Accentuation in the directory
I have a directory location problem when it involves an accentuated file or folder. Follow the section below where I try to capture the file size: $filepath = "$novocaminho".utf8_encode($arquivo);…