Posts by Carlos Fernandes • 446 points
11 posts
-
0
votes4
answers1791
viewsA: Display login username on screen
Hello, Following the query $sql = "SELECT cod_clin, user, user_name, user_id, nom_clin FROM usuarios WHERE user_id='$login' AND user_password='$senha' LIMIT 1"; the PDO will return you the following…
phpanswered Carlos Fernandes 446 -
1
votes2
answers164
viewsA: How to verify, for each item inserted in $Scope.items[], whether fields have been filled in
Add a function to validate the fields before running the push. Ex.: var validar = function() { if(!$scope.myForm.nome.$valid) { alert('Digite o nome!'); return false; };…
-
3
votes3
answers4878
viewsA: How to use Laravel delete route?
HTML forms do not support PUT, PATCH and DELETE methods. To get around this Laravel has a very useful alternative described in its documentation, see #Form Method Spoofing With that, I’d be like…
-
1
votes1
answer259
viewsA: How to upload with Ajax
Hello @adventistapr You will need to define the cache:false, contentType: false, processData: false in the configuration of $.ajax() and use the Formdata. This way you can send the files and other…
-
1
votes2
answers688
viewsA: Expandable Table how to do Double select?
Try using the following query: SELECT distinct cliente, data, group_concat(CONCAT_WS(',',id,coluna1,coluna2,valor) SEPARATOR ';') as resultados FROM tabela GROUP BY cliente ORDER BY cliente; Where…
-
1
votes2
answers1831
viewsA: Problem placing a background image in only one view
Try to do it this way: CSS: html,body{ height: 100%; } .background{ height: 100%; background: url(nature.jpg) no-repeat center center fixed; background-size: cover; /*Css padrão*/…
-
3
votes1
answer708
viewsA: configure "search Cancel" button position in input type=search in Safari 7
Use the ::-webkit-search-cancel-button, turn his position into absolute, position:absolute and align with the right. To get his position inside the input, define the position of the element as…
-
3
votes2
answers2403
viewsA: Position a section of the layout below a FIXED header
Usually I use the padding-top on the tag body with the same height as the element, which in this case is, div.header. Ex.: body{ margin:0; padding-top: 60px; } .header{ height: 60px;…
-
2
votes1
answer466
viewsA: How to search all the records in the database?
With this query, the query will return all the variations registered in tbl_variacoes. $BuscaProdutosAtivos = $pdo->prepare("SELECT * FROM tbl_produtos p INNER JOIN tbl_categorias c ON c.cat_id =…
-
1
votes1
answer635
viewsA: Background only in one part of the element
My dear! Like our colleague khaosdoctor said in Background only in one part of the element: You can set the background of two Ivs, one on each side and let them stretch Use two elements div to…
-
1
votes2
answers755
viewsA: How to throw a block on top of the other block?
That’s what our friend William Barbosa responded in /a/41337/18328 Simple solution with :hover Note that I added classes so I don’t have to use the selector directly in the element name, I advise…