Posts by Felicio Neto • 110 points
9 posts
-
3
votes5
answers2538
viewsQ: How to use Try Catch on an Insert
How do I use a Try catch to return an error from an Insert that was not inserted into the database. For example $sql = $pdo->prepare("INSERT INTO usuarios (nome,email,senha,telefone) VALUES…
-
-1
votes2
answers1158
viewsA: Create an image gallery
See if it gives you a light. .portifolio { width: 1100px; overflow: hidden; line-height: 0; column-count: 2; column-gap: 2px; margin-bottom: 50px; } .portifolio img { max-width: 100%; } <div…
-
0
votes4
answers79
viewsA: Show div/form when user selects an option
Creates a class to add the display block when inserted into the element, and leaves everyone with display None, when if you test, you remove class from all elements and ad only in the element you…
-
0
votes1
answer1261
viewsA: How to insert dates into a database table using PHP?
Simple lack of attention friend, but just you fix here $data = date("Y-m-d",strtotime(str_replace('/','-',$data_nasc))); and at the time of inserting you enter the $data variable, instead of…
-
1
votes3
answers105
viewsA: Error in Mysql query
Because you are bringing several max in the query, it ta shuffling the results with max of each select following the conditional.
-
-1
votes2
answers1106
viewsA: Scroll overlaying the navigation header (navbar) in HTML/CSS
If you take footer and the other parts of the site from inside the main div, your site will be normal. As you are encompassing your entire site within the main div, so the y axis is being created…
-
0
votes2
answers52
viewsA: How to put two pictures on this grid on each line for a 1366*768 resolution?
Friend there is a function in CSS calc(25%-10px); with this function you calculate the size of the element - the margins you add to it, your figures are not fitting in the parent element, because…
-
2
votes1
answer67
viewsA: Setinterval and reset
I made something very simple here, see if it helps you. tempo = 2000; //crio variável global para controlar o tempo, number = 1; //essa variavel e apenas pra imprimir e controlar o incremento, mas…
javascriptanswered Felicio Neto 110 -
3
votes5
answers1540
viewsA: Check that all $_POST was shipped without using too many ifs
Try to check if the value is empty, because even if it is not filled it will return null and null is already considered a value, check also if it exists, putting the ! isset. Would look like this:…