Posts by Matheus Godoi • 344 points
19 posts
-
0
votes3
answers123
viewsA: Video Background slow to load (wordpress)
<script type="text/javascript"> window.onload = function(){ $('section#content').style.display = 'block'; } </script> <style media="screen"> section#content{ display: none; }…
-
0
votes5
answers325
viewsA: Php View Columns
//Busca os dados na tabela $query = "SELECT id, colunaA, colunaB FROM tabela"; //Executa a query $result = mysqli_query($query, $link); //Cria uma variávelaleatória para armazenar os IDs das linhas…
-
1
votes1
answer824
viewsA: Send data to another page via a button
I think the best way to do this is by using GET. You will create for each button a link that will contain 2 things: 1) The file that will do the processing of the data sent. 2) The data itself. On…
-
1
votes1
answer750
viewsA: search box within a select with database search
First of all, I’m gonna make it very clear that I’m not sure I understand what you want, but here goes. The detailed explanation is a little complicated, but I can try to help. You will be able to…
-
2
votes1
answer46
viewsA: The data is not saving
Your receiving page is using $_POST to display the selected hours. The $_POST variable only exists when you send it from a form (it’s the values entered in the input fields). If you go from the…
-
3
votes3
answers1808
viewsA: Security when creating a PDO query function
The best (and most recommended) way is the correct use of PDO. Although it is a little more difficult to implement, it ensures greater security when executing the query. That’s because the process…
-
2
votes1
answer460
viewsA: How to view the data registered on another page
Considering that the data you want to list is already saved in a database, it is not very difficult. Create the new page, make your connection to the database, and then run your query by picking up…
-
0
votes3
answers299
viewsA: Grid bootstrap getting misaligned in panel with results brought from database
Make sure there is none text-align: center in his css. A tip: try to fix this echo PHP. Instead of treating HTML as a simple string, use it this way: <?php while ($row =…
-
0
votes2
answers609
viewsA: Align DIV with Absolute position to another DIV with FIXED position
Use the position: absolute in the slider, and then change the property top (position of the element relative to the top of the document) according to its need. I noticed you put a padding in your…
-
1
votes0
answers85
viewsQ: What is required to connect to an external SQLSERVER database to my application?
I have a hosting that I need to connect to a bank Sqlserver external in a php system I am creating. I insert all data correctly but always gives connection error showing the message:…
-
0
votes1
answer75
viewsQ: Problem replacing accented characters
The function preg_replace is not behaving the way I predicted. By executing the code $string = preg_replace("/[ÁÀÂÃÄáàâãä]/", "a", $string); what I get back is a string filled with "a"s. If the…
-
0
votes0
answers45
viewsQ: What is the best way for a new system to communicate with an Asp . NET system?
I have a client who is looking for a new website that communicates with the database of a system that he already uses in the company (implemented in Asp .NET). It is important the integrity of the…
-
1
votes1
answer346
viewsQ: Button element submitting form. How to deactivate?
I need to separate the form into 2 different Ivs on the same page. I tried the next one and it didn’t work: <div id="div1"> <form method="post"> <input type="text" name="Nome">…
htmlasked Matheus Godoi 344 -
0
votes2
answers160
viewsQ: Protecting the php code
I’m creating a system that encrypts some data and saves it in the database. Suppose this encryption is md5 and happens in the directory meusite.com.br/controller.php. How do I prevent someone…
-
0
votes1
answer65
viewsA: Searching data on multiple pages on a single site
Studying a little, I decided to create an extension for Chrome. In a file was created all the script that read the data. The extension basically inserted this script into the page, capturing the…
-
3
votes1
answer156
viewsQ: Instantiating a class can use it in all functions of the same class
I wonder if I can instantiate another class just once and use it in all other functions of my current class. Sample code: require ('model.php'); class search{ function __construct(){ $objModel = new…
-
1
votes0
answers52
viewsQ: Script does not continue execution
I’m making a script that collects the data of students that are displayed only on an HTML page. Tags are not identified by id, and had to collect everything in a very inappropriate way (searching…
-
2
votes1
answer1939
viewsQ: Searching and changing the value of the checkbox with javascript
I’m trying to search and change the values of a checkbox using Javascript. The intention is, when the JS function is called, to check if the checkbox is set. If not, seven-a as checked, and vice…
-
1
votes1
answer65
viewsQ: Searching data on multiple pages on a single site
I need to make a database with the data of some products of a website. Product details (name, value, brand) are public and divided into pages. Each page displays approximately 10 products and their…