Posts by Felipe Gregio • 40 points
10 posts
-
0
votes1
answer52
viewsA: INSERT INTO table1 SELECT * FROM table2 USING PDO SQLITE3
I believe that this first query "SELECT * FROM DEVICES" is an array, so you would have to pass the values to an array... try like this: foreach($sqlUltimos10min as $valor) { //$pdoColetor1 =…
-
0
votes4
answers48
viewsA: Char variable is not receiving values in C
You can try using the get function like this: char ch; printf("Digite algum caracter: "); ch = getchar(); printf("\n A tecla pressionada eh %c.\n", ch);
-
0
votes1
answer61
viewsQ: Help with using $_POST in PHP
Hello, I’m having the following mistake: Notice: Undefined index: dataInicio in C: xampp htdocs Dashboard Dashboard.php on line 124. Apparently I’m not making the right use of the $_POST, but I…
-
0
votes2
answers49
viewsA: Text-Align in table with MPDF
You can try straight to td, so all of its components will align to the center. would be:<td style="text-align: center;">
-
-1
votes1
answer64
viewsQ: Filter with select using Javascript and php
Hi, I’m trying to make a filter according to the option that is chosen in a <select>. I have a button that executes the function created in javascript. I have variables declared in php, and I…
-
0
votes1
answer44
viewsA: Value returned in SQLITE3 query with PHP is not what expected
I was able to solve after new searches and reading of the manual, I was able to get the result I expected using the fetchColumn() parameter that returns the first line : <?php $pdo = new…
-
-3
votes1
answer44
viewsQ: Value returned in SQLITE3 query with PHP is not what expected
Hello, good afternoon, I’m trying to select a Sqlite3 bank that sent me information, however the result that is returned to me is 0. Here’s where I want the result: This is my code: <?php $db =…
-
2
votes1
answer669
viewsQ: Problem to export table in xls format with PHP
Good afternoon. I have a button that generates a file . xls that should bring a spreadsheet from an SQL query... The file is generated, the problem is that a message appears in Excel saying that the…
-
-1
votes2
answers167
viewsA: Run PHP function with onclick()
I managed to solve and get the result I wanted. What was done to work was: I removed the onload="Loadfiltro(false) attribute from the body and it worked. Thank you very much.
-
-1
votes2
answers167
viewsQ: Run PHP function with onclick()
Hello, I have a function that should be executed only by clicking the filter button, but the page already opens with the search, with the function executed. Onclick is already on the filter button.…