Posts by Wendel Rodrigues • 1,124 points
43 posts
-
1
votes1
answer247
viewsQ: How to include files in a View based on the Laravel Route?
I created a view inicio.blade.php where I put all the code that repeats on all pages and created other views that extend this view. I created the routes for the views by setting a name for them this…
-
0
votes1
answer16
viewsA: How to compile GNU Diffutils3 for use with Mediawiki on Windows?
After a while I discovered that actually the library diff3 is in the folder bin of the installation of DiffUtils. Just put the library address in the variable $wgDiff3 of LocalSettings.php…
-
1
votes2
answers1276
viewsA: Integration boleto Itau Shopline in PHP
In that link says so: This error is related to Key, and may cause the wrong registration of the key in the module settings, or because after the generation of the Key the same delay up to 24hrs for…
-
0
votes2
answers255
viewsA: WHM/Apache + jQuery Ajax Server Configuration
Maybe this link can help you: Apache/PHP server does not respond while making a SOAP request It seems to be a problem similar to the one you described, so when you access from another terminal it…
-
0
votes3
answers270
viewsA: variable interval php time
Try it this way: <?php date_default_timezone_set("Brazil/East"); $con = mysqli_connect("localhost", "root", ""); $bd = mysqli_select_db("test", $con); $hora_inicio = new DateTime('07:00');…
phpanswered Wendel Rodrigues 1,124 -
0
votes1
answer40
viewsA: Improve javascript menu logo code
One of the things I would do is create a function and pass the image address to it as a parameter: function criarLogo(endImagem) { var logoMenuPrincipal = document.createElement("div");…
-
1
votes2
answers74
viewsA: Problem passing value by URL
Try it this way. I ran some tests and it worked. <?php if(isset($_GET["link"]) && $_GET["link"] != '') { $link = $_GET["link"]; switch ($link) { case 17: echo "funcionario_cadastrar.php";…
phpanswered Wendel Rodrigues 1,124 -
10
votes3
answers556
viewsA: An image with display:None is loaded? Consume data?
In this link a user did a test on Chrome, Internet Explorer, Firefox and Opera and they handle it in different ways. If images are in a tag img they will be downloaded by everyone. But if they are…
-
0
votes3
answers1088
viewsA: How to select Mysql using input date type with php?
First, you are only passing a date, if you want to filter for a period between two dates it is better to pass the two dates (logically) and if he type only one he takes the records only from that…
-
12
votes3
answers1205
viewsA: What are Proxy, Gateway and Tunnel in the HTTP protocol?
According to the RFC 7230 follows the definitions: Proxy definition: A "proxy" is a message forwarding agent that is selected by the client, usually through local configuration rules, to receive…
httpanswered Wendel Rodrigues 1,124 -
1
votes2
answers80
viewsA: Problem with SQL query
Your SQL should look like this: if ((isset($_POST['tipo_de_documento'])) && (!empty($_POST['tipo_de_documento']))) { $consulta = "SELECT tipo_de_documento.id_tipodocumento,…
mysqlanswered Wendel Rodrigues 1,124 -
1
votes1
answer50
viewsA: Is there any connection between these two elements of the HTML code?
The box10 is the category of the course, the lin-curso is the line with course data and classes lin-curso-c1, lin-curso-c2, lin-curso-c3, lin-curso-c4 are the columns with the course information. It…
-
0
votes1
answer16
viewsQ: How to compile GNU Diffutils3 for use with Mediawiki on Windows?
I’m installing the Mediawiki on Windows but need to install the Diffutils3. I could only find the installer for the version 2.8.7, I think three has to compile. Could someone help me with this? Or…
-
1
votes2
answers1072
viewsA: How to make the business logo icon appear in outlook message box
As far as I know there it shows the image that is in the email account. ML should not appear because it probably does not have. Try to insert a photo into the email account that is the sender of…
-
8
votes2
answers68
viewsA: Why doesn’t the array value 1 appear in the explode?
It’s because you’re giving explode for / and in the // he recognizes that between them there is an empty value. Apparently, what you need to do can be done with the function parse_url() $urlAtual =…
phpanswered Wendel Rodrigues 1,124 -
1
votes2
answers362
viewsA: Display name in input using autocomplete
Try to do so by inserting the label input by his ID: $('#search_broker').autocomplete({ source: path + "User/get_brokers", minLength: 2, select: function (event, ui) {…
-
0
votes1
answer6674
viewsA: Install Apcu in PHP 7.1
Download the file php_apcu.dll here: http://windows.php.net/downloads/pecl/releases/apcu/ Download the file php_apcu_bc.dll here: https://pecl.php.net/package/apcu_bc Then copy the files…
phpanswered Wendel Rodrigues 1,124 -
-1
votes3
answers2104
viewsA: Send message after clicking Submit button
Try to take the exclamation off your condition, you’re denying the condition. If it doesn’t work try it like this. Put the value in submit: <form method="POST"> <input type="text"…
-
0
votes4
answers1249
viewsA: What is the <canvas> tag for?
Is a tag HTML5 which allows you to access methods for creating geometric shapes, making animations, etc. For example: var canvas = document.getElementById("minhaCanvas"); var ctx =…
-
1
votes1
answer669
viewsA: How to install mORMot?
Download the repository github in a directory, I will use as an example D:\mORMot; Go on Tools / Options then in Enviroment Options / Delphi Options / Library Add these paths to Library path and…
-
0
votes2
answers657
viewsA: Fix or prevent "Script Error" display
I managed to fix it. It was a problem of case sensitive. I looked at the console and it was showing: Typeerror: "bi" is not a Function So I looked at the link Leia mais that it shows and there said…
-
0
votes2
answers657
viewsQ: Fix or prevent "Script Error" display
In the Delphi i call an HTML page that displays some graphics made with jChartFX within a TWebBrowser, are working normally, but when clicking on any chart it shows me this alert Script Error: I…
-
1
votes3
answers242
viewsA: How to enable click on entire cell of a table opening file on a new page
Put the data-url in the td there instead of tr: <tr> <td data-url="<?php echo $DadosFichas->Url; ?>"><?php echo $DadosFichas->Nome; ?></td> </tr> Use the…
-
0
votes3
answers338
viewsA: How to anchor a redirect in APS.NET MVC
This feature is called anchor in HTML. You need to create the anchor and then just call it on any link. Creating the anchor: <a name="NOME_DA_ANCORA"></a> Going to the anchor: <a…
-
0
votes2
answers1072
viewsA: How to order Record in Delphi (similar to ORDER BY)?
I managed to solve using the Sort of TDynArray of mORMot. The Sort takes a function as a parameter and in it I pass the function that compares the records for sorting. I did a comparison function…
-
1
votes2
answers1072
viewsQ: How to order Record in Delphi (similar to ORDER BY)?
I bring some bank records with a specific sorting and play into a vector of the type record. Then I need to add more items in this array keeping the initial sort. How the sort is done in the SQL the…
-
3
votes3
answers105
viewsA: Add a character dynamically with PHP or Javascript
Has the function str_pad: <?php print str_pad('45', 10, "0", STR_PAD_LEFT); // Gera "0000000045" print str_pad('23', 10, "0", STR_PAD_BOTH); // Gera "0000230000" print str_pad('76', 10, "0"); //…
-
0
votes2
answers103
viewsA: PHP-code conflict - blank page
To be able to do what you need you would have to create only one table to store all users. You have two registo and Admin. In this table you would have, for example: user, email, password, type…
-
2
votes1
answer674
viewsA: Problem with Insert using mysql_query()
I think the quotation marks are missing string and at the date: $sql = "INSERT into video (nomeVideo, urlVideo, dataPostagem) VALUES('$nomeVideo', '$urlVideo', '$dataPostagem')";…
-
0
votes1
answer2674
viewsQ: How to configure the Materialize Pickadate correctly?
I set up the pickadate of Materialize on an only page that it is getting in English and when I leave and go back to the tab that has the pickadate it opens without me clicking on the field. I…
-
0
votes1
answer509
viewsA: Get JSON return without "result" in Ajax or return without "result" in Delphi
I was able to solve using the JSON.parse in the result of the request, as it brings a string and the Google Charts awaits an object: var jsonData = JSON.parse(jsonData); Then to catch the JSON…
-
1
votes1
answer509
viewsQ: Get JSON return without "result" in Ajax or return without "result" in Delphi
I am generating a JSON in Delphi with mORMot and I need to pick it up on a page to generate some graphics with Google Chart, however the Delphi return me the JSON within a result. I just mount the…
-
1
votes1
answer4347
viewsA: How to open a page in the same tab with Javascript?
Use the window.location.href in place of window.open: window.location.href = "<?php url(); ?>/solicitacao/<?php echo $a; ?>";…
javascriptanswered Wendel Rodrigues 1,124 -
0
votes1
answer152
viewsA: How do I search a Virtualstringtree in Delphi without using Edit?
As incredible as it may seem VirtualStringTree already owns this resource. Just enable the property IncrementalSearch, in this case I left isAll searching for items starting with a certain letter or…
-
0
votes1
answer152
viewsQ: How do I search a Virtualstringtree in Delphi without using Edit?
I have a VirtualStringTree with some items and I want to implement in it a resource similar to what a ComboBox possesses. It works like this: when pressing a certain letter, he must select the first…
-
0
votes1
answer337
viewsA: How to create a Virtual String Tree in Delphi
To add a parent node declare a type variable PVirtualNode: pai: PVirtualNode; Give a command to start editing the grid before you start inserting the nodes: vstGrid.BeginUpdate; Add the parent node…
-
4
votes2
answers63
viewsA: PHP errors/warnings parameter 1 & 2
You’re passing a query as a parameter in place of SQL on line 8. Remove line 8 as it is not required, and change line 9 (which will become line 8) by changing the variable $r for $sql: $count =…
-
1
votes2
answers113
viewsA: Improve a Bank Search
You can create a <select> for the user to choose the filter you want to use. For example: <select name="filtro"> <option value="fNomeEmail">Nome e E-Mail</option> <option…
-
1
votes1
answer1958
viewsQ: Applying Richedit text style in Delphi
I need black a few words within a Richedit in Delphi, it works normally when there is no line break. But when I insert a line break I cannot correctly select the word to apply the style. All the…
-
1
votes0
answers438
viewsQ: Printing Teechat Chart on Delphi XE5
I need to print a Teechart chart on Delphi, but it gets totally unnoticed when the Smooth option is unchecked. This is the chart that should be printed: On the print screen has this option Smooth…
-
1
votes1
answer364
viewsA: How to know when the computer will shut down/restart/hibernate/suspend in Delphi?
I managed to solve it. I was declared in another form, put it in the main form and it worked. But I had to make some changes because the PBT_APMQUERYSUSPEND is no longer supported from Windows…
-
2
votes1
answer364
viewsQ: How to know when the computer will shut down/restart/hibernate/suspend in Delphi?
I have a system that works with websocket in Delphi with mORMot, when I restart the PC or when I disconnect it runs Onclose and Ondestroy and through that I can remove the callback of the logged in…
-
0
votes3
answers260
viewsA: Problem in PHP+Mysql query using LIKE
What value comes in this variable $especialidadesaude and how is it stored in this field 'areasaude'? If it’s space-separated ids (or another character) you can use slipt: $ids = split(' ',…