Posts by denalioasis • 161 points
13 posts
-
0
votes1
answer2959
viewsQ: How to change the color of the link after the link was accessed?
Using bootstrap <div class="well well-sm"> <ul class="list-group"> <li class="list-group-item text-left"><strong>QUESTIONÁRIO</strong></li> <li…
-
0
votes1
answer35
viewsQ: change color after a page was visited using Bootstrap
it seems that doing so has no effect: a:visited{ color: #red; } There is another possibility to know which page the person has visited? I’m using php…
-
2
votes1
answer328
viewsQ: Insert of data passing only $_POST using Laravel
on the assumption that all names the inputs have the same name as the database column. public function create(){ // o que está abaixo é um exemplo com os dados já populados $arrayDados=…
-
1
votes1
answer518
viewsQ: jquery dynamic validate
<div class="pages alert alert-success"> <div class="questoes"> <label><input type="radio" name="rd1"> 1</label> <label><input type="radio" name="rd1">…
-
0
votes1
answer27
viewsQ: Problems when instantiating the object
public function select($sql, $array = array()) { $sth = $this->conn->prepare($sql); if(!empty($array)){ foreach ($array as $key => $value) { $sth->bindValue(":".$key, $value); } }…
-
2
votes1
answer110
viewsQ: a more efficient way to make the Insert bind and update large
public function update($table, $data, $where,$criterios) { $set = ""; foreach ($data as $keyname => $value) { $set .= ($set == "") ? "" : ", "; $set .= $keyname . " = " . ":".$keyname ; } $sql =…
-
1
votes1
answer29
viewsQ: how to return two distinct arrays using Union all
$stmt = $this->db->query(" SELECT COUNT(*) AS total, status as tipo FROM tabela1 WHERE status=1 GROUP BY SEXO UNION ALL SELECT COUNT(*) AS total, status as tipo FROM tabela2 WHERE status=1…
-
2
votes3
answers553
viewsQ: Nth-Child does not work
<div class="intro-frases" > <div class="row"> <div class="col-md-6"> <h1 data-segundos="4" class="frases pull-right" >TESTE 1</h1> </div> <div…
-
3
votes2
answers237
viewsQ: Is it good practice to store a JSON object in a data-attribute?
<button type="button" class="btn btn-info btn-lg questao" data-json="" data-toggle="modal" data-target="#myModal">Open Modal</button><BR/> <button type="button" class="btn…
-
0
votes1
answer166
viewsQ: where to mount the table in a PHP MVC project with ajax?
Inside the model I have a series of negotiations to show the final result. //CONTROLLER public function index(){ $this->view->render("views/index.php"); } public function read(){ $data =…
-
0
votes2
answers107
viewsQ: Problems when using Heredocs
return <<< EOT <input type="text" name="questao{$this->numQuestao}" value="<?php echo $questao{$this->numQuestao}?>"/> EOT; I needed to print this in my file html:…
phpasked denalioasis 161 -
2
votes2
answers49
viewsQ: problems when creating dynamically Event listeners
http://jsfiddle.net/njszasq7/ JQUERY/Javascript verificaCamposRepetidos(".teste", array1); verificaCamposRepetidos(".teste1", array2); HTML: <p id="parte1"> <span>VALORES de 1 a…
-
1
votes0
answers39
viewsQ: Problems adding fetchAll results to an array
private $resultado; public function buscaTodos($query){ $stmt = $this->conn->prepare($query); $stmt->execute(); $this->resultado = $stmt->fetchAll(PDO::FETCH_OBJ); } public function…