Posts by KevinF • 1,332 points
101 posts
-
0
votes1
answer198
viewsQ: Manipulating records from a php array
I have a query in the database that returns the records in an array, I would like to know how to manipulate these records, take them from the array. Code $array = MinPDO::consult("intro", NULL, "id…
-
2
votes2
answers612
viewsQ: Join equal records in an HTML table
I have a table that returns several records. Table Code: <table> <thead> <tr> <th>N° Prog</th> <th>Data Opr</th> <th>Origem</th>…
-
0
votes2
answers45
viewsQ: Clauses and JS message
I need that when $DsTpVeiculo for Cavalo Truck o input be filled and show a message asking to fill in, and if it is Truck or Bitruck should not be filled out showing a message either. Some message…
-
4
votes1
answer566
viewsQ: How to assign 60 more days in a date compared to today’s PHP date?
I am assigning today’s date in a variable, I would like to know how to assign today’s date plus 60 days. How would the syntax ? $dateIni = date('Y-m-d');
-
0
votes0
answers66
viewsQ: Update in two tables with the same function
I have a function that makes a UPDATE I wonder if with the same function I can do more than one UPDATE for example in 2 tables in db. Is there any possibility ? I would like to know the syntax also…
-
0
votes3
answers3160
viewsA: Remove arrow from "select"
I found a solution to remove the arrow using the Foundation. Inside the archive Foundation.css, commented on the line background-image, and added -webkit-appearance: none !important; select {…
-
3
votes3
answers3160
viewsQ: Remove arrow from "select"
Code: <select class="backcolorselect" id="st" name=""> <option class="backcolorselect" value="Sim">Sim</option> <option class="backcolorselect" value="Não">Não</option>…
-
0
votes1
answer68
viewsQ: Increase sql performance
I have this function below that runs this SQL, but the running time of this SQL is too high would have some way to decrease the running time ? At the time of loading the page takes around 5 seconds…
-
1
votes1
answer97
viewsQ: Resize Image
I need to resize to a fixed size the images coming from getass tried in the html but the images have different sizes so each one gets one size. I wanted to set a fixed size for this image shows with…
-
6
votes2
answers931
viewsQ: How to classify a table from A to Z?
I have an HTML table that brings information from the database. I wonder if there is any way to sort from A to Z and vice versa this data by clicking on the column name in the table? These data are…
-
1
votes2
answers382
viewsQ: Filter SQL query
I own a field called emailMSG0 within a table in the database. This field contains various information. Is there any possibility in SQL I filter what I want to get inside this field emailMSG0 ?…
-
0
votes0
answers49
viewsQ: Hiding database information in php
Code: foreach ($controller->ListaDados($objCheck) as $objCheck) { ?> <table bordercolor="grey" border="1" class="container"> <tbody> <tr> <td colspan="2"…
-
1
votes1
answer3017
viewsQ: 2 Variable by header
Code: $notapost = $_POST['nota']; $cnpjpost = $_POST['cnpj']; $objCheck = new Check(); $objCheck->setemail($notapost); $objCheck->setlocal($cnpjpost); $controller = new Comando($conn);…
-
5
votes4
answers1021
viewsQ: Balloon that brings information about the page
I have the following code. <html> <table> <td>..texto..</td> </table> </html> I would like to click on the text of this td to climb a balloon over the page and…
-
0
votes0
answers190
viewsQ: Problem with php POST Variable
Code: Form: <form action="../controller/NotPrecontrole.php" method="POST" onsubmit="return valid();"> <input type="hidden" name="id" value="<?php echo $id; ?>"/> <input…
-
1
votes2
answers120
viewsA: Edit does not edit PHP
I solved the problem, in my database the column Inactive is a Primary key Not Null. So I wasn’t worth one to her at UPDATE. I created another input in the editNot I passed the value by input and…
-
1
votes2
answers120
viewsQ: Edit does not edit PHP
Code: Editnot <?php include('../connection_open.php'); include_once ('../controller/NotControle.php'); include_once ('../model/Not.php'); include_once ('../DAO/NotDAO.php'); $controller = new…
-
0
votes3
answers47
viewsQ: Second button replacing contents of the first
With this code below when I click the button mat it brings me the data in a table. I would like to click on the button sp replace the contents of the table with another. Code: <button id="mat"…
-
1
votes2
answers1221
viewsQ: Disable mouse scroll
My code. Css: td div{ width:100%; height: 40px; overflow: hidden; padding-top: 9px; } td div:hover{ overflow: auto; } Html: <td><div><?php echo $objProg->getagen();…
-
2
votes4
answers24789
viewsA: Menu and submenu with bootstrap
Testing with this structure: <ul class="nav nav-tabs"> ... <li role="presentation" class="dropdown"> <a class="dropdown-toggle" data-toggle="dropdown" href="#" role="button"…
bootstrap-3answered KevinF 1,332 -
0
votes1
answer249
viewsQ: Problem when clicking the button, call ajax
Code: <button id="click" class="button"></button> <div class="TableCSS"> <table id="clickvent"> </table> </div> $(document).ready(function(){…
-
3
votes4
answers176
viewsQ: Do not show "overflow" arrows
I own a td with overflow. <td><div><?php echo $objProg->getagen(); ?></div></td> Css: td div { width:100%; height: 30px; overflow: auto; } With this CSS above it…
-
1
votes1
answer40
viewsQ: Button playing the same role of browser arrow
I would like to know if there is the possibility of a button do the same role of the "back" arrow of the browser ? Go back to the previous page without refreshing the page ?
-
3
votes1
answer1299
viewsQ: Date is not "blank" sql-srv
I have a column in the type database date. When I change some date in a form php and leave blank the same instead of being blank she brings me this date of 1900-01-01. Below the input I use to…
-
1
votes2
answers2518
viewsQ: IF condition inside input
Code: <input type="date" id="data" name="data" value="<?php echo $dataPost = $_GET['data']; ?>" required> The question is this: Can you make a condition if before the value within the…
-
0
votes1
answer3022
viewsQ: Scroll bar in a select
How to scroll a "scroll" to scroll in a select ? For example: <select> <option>a</option> <option>b</option> <option>c</option>…
-
0
votes1
answer195
viewsQ: Doubt xampp directory
I have a question regarding shamans. I have a folder in htdocs inside the xampp directory. The doubt is as follows: When I access this folder from the web for example: https:/localhost/myhost does…
-
2
votes2
answers6310
viewsQ: HTML inside "echo" php
I’d like to know how I get through it: <td><a href="edita.php?id=<?php echo $objProg->getid();?>">Alterar</a></td> Within a echo in php ?…
-
1
votes2
answers101
viewsA: "Catchable fatal error" PHP error
I solved the error by modifying some codes below: View: <form method="POST" action="../controller/buscaPrecontrole.php"> <div class="large-12 columns"> <div class="large-3…
-
-2
votes2
answers101
viewsQ: "Catchable fatal error" PHP error
I have a field search in which put a dynamic date, posting this date returns me the records of the bank below, but I stuck in this error that happens in foreach. Follows code: DAO: public function…
-
2
votes1
answer257
viewsQ: Input constraint "type date"
Code: <input type="date" name="data" value=""> <input type="submit" class="success round button" value=""/> I need that when I click the Ubmit button and the date field is blank it…
-
3
votes1
answer172
viewsQ: "Call to Undefined Function" error when calling a class function
I have a function to convert the date, but is returning me an error that I could not adjust: Follows code: <?php class Prog{ private $DtBase; public function setdata($DtBase){ $this->data =…
-
0
votes1
answer96
viewsQ: Problems search php Pdo
I’m making a field to search but returns me some errors. My code: class Prog{ private $DtBase; public function setdata($DtBase){ $this->data = $DtBase; } public function getdata(){ return…
-
2
votes3
answers3910
viewsQ: Select current date
I need a select pull all records from the current date table (today), without entering the date, in sql-server and what the PHP syntax would look like as well. Since I have a column called Dtbase…
-
0
votes0
answers129
viewsQ: Hide directories in url
I wonder if there is any way in PHP to hide the path of directories in url browser. For example, this is how it looks: localhost/test/view/home.php Is there any possibility to show only the .php…
-
1
votes1
answer77
viewsA: Error in Xampp 3.22
This error is due to port 80 and 443 which is already being used. Open the httpd.conf file in the notepad and change the line Listen 80 to another door, for example: Listen 8080 After changing port…
-
2
votes2
answers955
viewsQ: Paint table row when receiving specific data
I have this code: <?php foreach ($controller->Lista() as $objProg) { ?> <tr> <td><?php echo $objProg->getplaca(); ?></td> <td><?php echo…
-
0
votes3
answers3680
viewsA: How do I eliminate the top space my DIV leaves?
Try to edit to: .element{ position:fixed; padding-top: 0px; margin-top: 0px; }
-
2
votes2
answers522
views -
1
votes2
answers226
viewsQ: Select checked on return
I have the following code: <p>Status</p> <select id="st" name="st" value="<?php echo $DsStatus; ?>" /> <option value="0">➖</option> <option…
-
1
votes2
answers6722
viewsA: Display input value date type
Solved the problem follows the right code: $data_formatada = DateTime::createFromFormat('d/m/Y', $DtSaida); <input type="date" maxlength="10" onkeypress="return dateMask(this, event);" id="saida"…
-
0
votes1
answer69
viewsQ: Value x PHP input
Code is this: Page edits: <?php $id = ""; $DsStatus = ""; if(!empty($_GET['id'])){ $id = $_GET['id']; $results = $controller->listar($id); $DsStatus = $results->getst(); } <form…
-
1
votes1
answer477
viewsA: Data php Pdo format
Code right as it turned out: $data_formatada = DateTime::createFromFormat('d/m/Y', $DtSaida); Input: <input type="date" maxlength="10" onkeypress="return dateMask(this, event);" id="saida"…
-
1
votes1
answer477
viewsQ: Data php Pdo format
Input: <html> <form action="../controller/progPrecontrole.php" method="POST" onsubmit="return valid();"> <input type="hidden" name="id" value="<?php echo $id; ?>"/>…
-
4
votes2
answers6722
viewsQ: Display input value date type
I have the following input: <p>Data Saída:</p> <input type="date" maxlength="10" id="saida" name="saida" value="29/01/2016"/> It is being shown as follows: But I want to display…
-
0
votes2
answers895
viewsQ: Convert sql server data format
Well, I need to convert the data in sql server to dd/mm/yyyy I need an update or something that can help me. Screenshot of the table column below, as it is now: I need you to stay 03-10-2016 for…
sql-serverasked KevinF 1,332 -
1
votes1
answer261
viewsA: Help with Editing PHP PDO
So, the error in the above code posted appears in two places. On the DAO inside the Function Listaportipob, I was simply taking the wrong name of Row in the database. The right one was like this:…
-
0
votes1
answer261
viewsQ: Help with Editing PHP PDO
I’m pulling data from a table in sqlsrv to an html table because I often need to edit this data in that table. So I created a php edit function to edit the table row on another page only that is not…
-
1
votes1
answer553
views -
1
votes0
answers167
viewsQ: Connection database sql server 2008 PDO
I’m using the following code: try { $con = new PDO("sqlsrv:Server=ip;Database=nome","nome","12345"); $con->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); } catch (PDOException $e) { die…