Posts by Robert Sousa • 95 points
6 posts
-
0
votes1
answer44
viewsA: Is there a way to set a max-height for the dropdown of the select tag?
Instead of you using max-height use the data-size of the selectpiker, is already ready just implement see this example I think will suit you: <select class="selectpicker" data-size="2">…
-
1
votes1
answer35
viewsA: PHP function of the class!
The correct would be a Get and Set, and don’t forget the "$this" to reference a global value <?php class book{ public $nome; function setNome($x){ $this->nome = $x; } function getNome(){…
phpanswered Robert Sousa 95 -
2
votes1
answer79
viewsQ: How do I pass an array as an argument in PHP and receive all the data in the shell?
Example: <?php $param=array(valor, valor2, valor3); $return = shell_exec("sh teste.sh $param"); echo "<pre>$return</pre>"; ?> Shell script: #!/bin/bash param=$1 echo $param That…
-
-4
votes1
answer149
viewsQ: View photo registered in the bank
I want to display a photo registered in the database that was registered in a type blob attribute. However I do not want to display the photo through a link where you click and open the photo, on…
-
2
votes2
answers1166
viewsQ: Swap a dot for a comma and add a dot
How do I add the comma to the decimal place and the dot to the thousands. Example: $pagamento = R$ 1000.50; /* trecho a fazer a operação */ echo $pagamento; //saída: "R$ 1.000,50"…
-
0
votes1
answer30
viewsQ: Return different from desired in function
The id is not returning after insertion, what may be wrong? I did the test with the printf but nothing appears public function cadastrar($pdo){ $sql = $pdo->prepare("INSERT INTO…
phpasked Robert Sousa 95