Posts by Dunga Cardoso • 337 points
17 posts
-
-2
votes2
answers254
viewsQ: Mysql doubt compare multiple columns
Goodnight, I’m with a project where I need to compare which employee meets certain requirements, the structure of the bank is like this: I have a table with the score requested for each position and…
-
0
votes1
answer546
viewsQ: Popular Listview Shapes with Retrofit 2
Although there is already a similar question, not clarified my doubt, my problem is the following, the code below is from onResponse of Retrofit, I’m starting now in Java, I would like to play the…
-
1
votes2
answers415
viewsQ: Access Sqlite database in another Activity
I’m starting in java android, I’m quite layy yet, I’m picking up the concept of POO gradually. My problem is this, I have a Criabanco class and another Bancocontroller where I have some methods to…
-
3
votes0
answers26
viewsQ: Echo problem in '<' '>' php characters
Hello, I have the following problem, I am using an api that returns me a json array, but in some of these data comes between < >, ex: < test name > (not here worked...I had to give a…
-
2
votes1
answer981
viewsQ: Div with height automatico dropdown menu
Hello, my question is this. Let’s assume this code <div> <a>teste</a> <a>teste</a> <a>teste</a> <a>teste</a> </div> This div is displayed…
-
2
votes1
answer3011
viewsQ: html/css icon links
I could not express myself very well in the title, however it is the following, checking the source code of some sites I came across codes that do not understand how it works...follows the example…
-
0
votes2
answers53
viewsA: INSERT times do not insert all data
Personal I got the Solution, the problem was that in the database the field of the table alternatives this with Primary Key, and when an alternative that already existed was inserted the INSERT.…
-
0
votes2
answers53
viewsQ: INSERT times do not insert all data
I have a little problem, $alta = $_GET['alt-a']; $altb = $_GET['alt-b']; $altc = $_GET['alt-c']; $altd = $_GET['alt-d']; $correta = $_GET['correta']; $img = $_SESSION['imagem']; $questao =…
-
0
votes1
answer61
viewsQ: Mysqli prepared sentences
Hello, I have a problem, I would like to know about prepared sentences, I have this code: $query_email = ("SELECT email FROM usuarios_ WHERE email = ?"); $stmt = mysqli_stmt_init($conn); if…
-
1
votes1
answer122
viewsA: Change type of all table fields
Make a script in PHP $tabela = "nomedatabelaparamodificar" $sql = mysqli_query($conn, "SHOW COLUMNS FROM $tabela"); while ($lista = mysqli_fetch_array($sql)){ $array[] = $lista[0]; } foreach ($array…
mysqlanswered Dunga Cardoso 337 -
0
votes2
answers109
viewsQ: Good development practices (Use of Float, Brs, Api)
I would like some views on best practice in development, because I am an amateur in the subject and I would like you to clarify some doubts. When I am working on the layout I use many BR tags and…
-
4
votes2
answers1044
viewsA: Simple jquey chat with html database - How to send form by pressing enter key
A good option is to create a Javascript function to respond to events of keypress in the input where the message is entered: function enviarEnter(e){ var tecla=(window.event)?event.keyCode:e.which;…
-
0
votes2
answers1404
viewsA: Take another element’s background-color
You can try using background-color:inherit set the background-color for the parent element...and in the child elements put this property so that they inherit from the parent element. You can create…
css3answered Dunga Cardoso 337 -
0
votes2
answers160
viewsA: Protecting the php code
Against SQL Injection you must process the information received by GET and POST before interacting with the Database...using functions that remove special characters such as ='/"; that are common in…
-
0
votes3
answers1843
viewsA: PHP - How to send data from a table to a form
As it has already been passed I believe it would be better to already pass the data by GET in the own url and do the processing of the data in the form page, now if you want to take a table and send…
phpanswered Dunga Cardoso 337 -
3
votes1
answer1954
viewsQ: Select an element per attribute in Javascript without Jquery
How to select an element by some type attribute (type, for, value) as in jQuery ex: [type=text]? I wanted to make a function to jump fields in an automatic form...I wanted to do like this, take the…
javascriptasked Dunga Cardoso 337 -
0
votes1
answer365
viewsA: session_id PHP and mysql
You better use array in SESSION, as for your script $_SESSION['cesta'][]