Posts by Denali • 617 points
18 posts
-
6
votes2
answers64
viewsQ: how do I return two times using the COUNT(*) function
SELECT COUNT(*) AS contador, hora_efetivada FROM minha_tabela WHERE status=2 I have a counter that returns the total value of status 2 in the database, but in my name column hora_efetivada there are…
-
0
votes1
answer169
viewsQ: How to remove all data traces in the google search cache?
I have already disabled the indexing (robots.txt) and already made the insertion of meta tag (<META NAME="ROBOTS" CONTENT="NOINDEX, NOFOLLOW">) in the <head> of the page, but when I…
-
3
votes2
answers1064
viewsQ: How to use $(this) + checked?
<input type="radio" name="teste1" value="SIM"> TESTE 1 <input type="radio" name="teste1" value="NÃO"> TESTE 2 $(document).ready(function(){ $("[name='teste1']").click(function () { var…
-
6
votes2
answers83
viewsQ: How to prevent data from being posted to google search?
I have a database. Inside, a database with the data of several people. I have a scheduling system. All data of the person + day/time of scheduling is placed in it. The problem is that this data can…
-
1
votes2
answers44
viewsQ: build a conditional using object
Is it possible to create a conditional by assigning the conditional within a value? I did it the way I did it, but it didn’t work: HTML <input type="radio" name="pg1" value="SIM"> TESTE…
-
2
votes3
answers329
views -
4
votes3
answers594
viewsQ: How to set a column with adjustable size inside the container
<div class="container" style="background: yellow;"> <div class="row"> <div class="col-md-8 col-md-offset-2" > <div class="panel panel-primary"> <div…
twitter-bootstrapasked Denali 617 -
3
votes0
answers329
viewsQ: good practice in building a CRUD
connectionBanco.class.php class conexaoBanco{ private $host="asd"; private $login="a131"; private $senha="123123"; private $banco="asdasdasd"; private $conn; public function dbConexao(){…
-
11
votes2
answers1641
viewsQ: When to use and not use AJAX when submitting forms?
If I have a giant form of questions, sending via AJAX is the best way? <form id="formulario" method="POST"> <!--vários Questionarios aqui--> </form> Javascript: $.ajax({ type:…
-
2
votes4
answers2294
viewsQ: How to return an error after sending a form?
How do I return the echo "Deu Erro!"? on my page? //page-2.php <form method="post" id="formulario" action="acoes/enviar-formulario.php"> //codigo aqui </form> within the…
-
1
votes1
answer22
viewsQ: Is there a better way to check how many inputs were checked?
http://jsfiddle.net/3q4h6tnL/ An example in HTML: <div id="1" style="background-color: red;"> <input type="radio" name="pergunta1"> <input type="radio" name="pergunta1"> <input…
javascriptasked Denali 617 -
2
votes1
answer61
viewsQ: When using AJAX, can I upload content without being around the form tag?
should be placed the inputs, etc within a <form id="algo" method="POST"></form>? <form id="algo" method="POST"> <input type="text" value="NADA" name="valor1" /> <input…
-
1
votes1
answer31
viewsQ: I cannot print the array on the server
locally the data leaves, but hosted does not work. function teste(){ return array( "importancia" => array( "Customer el", "Over ", "Ovedde (MPG)" ), "dados"=> array( "Customer care: xthe…
-
1
votes0
answers47
viewsQ: Phpexcel is not exporting some data
I gave one var_dump in the $row_data and all the data is coming, but the problem is when I will generate the data by Phpexcel dynamically. In a table the data is generated, without any apparent…
-
6
votes1
answer790
viewsQ: how to align radios inputs in bootstrap?
http://jsfiddle.net/96ra0n8h/ I did it this way: <div class="row"> <div class="col-md-2"> <p>Discordo Totalmente</p> <p><input…
-
1
votes1
answer94
viewsQ: problems with infinite loop using PDO::FETCH_ASSOC
My Query $sql = "SELECT * FROM tablename WHERE algumvalor=2 LIMIT 1"; It’s going into infinite loop here How do I use while? while($row_data=$conn->executaQuery($sql)) { var_dump($row_data); }…
-
2
votes1
answer213
viewsQ: doubt with the bootstrap grid system
<div class="container"> <div class="row"> <div class="col-sm-6 col-md-4 col-lg-3"><p>Box 1</p></div> <div class="col-sm-6 col-md-4 col-lg-3"><p>Box…
twitter-bootstrapasked Denali 617 -
8
votes3
answers2984
viewsQ: The ideal way to build forms is to use table or div?
I have a form to develop, will be 100 questions divided into blocks (will have to be invisible, will have forward and back button, block validation etc), probably the form page will be very large.…