Posts by Thiago Freitas • 95 points
5 posts
-
3
votes4
answers20245
viewsQ: PDO:: Fetch & Fetchall
Because the following code works: $stmt = $pdo->prepare("SELECT * FROM dados"); $stmt->execute(); $codigos = $stmt->fetch(); echo $codigos['codigo']; And so I can’t use? $stmt =…
-
0
votes4
answers1091
viewsA: HTML DIV ID set with echo
Look at these changes, only works the DIV that got last value to "DIV 9"; <script> function display() { var elem = document.getElementById("<?php echo"disp".$i;?>"); alert(elem);…
-
2
votes4
answers1091
viewsQ: HTML DIV ID set with echo
I’m having a problem that I can’t figure out, I can’t understand why the ID of the DIV does not receive the value from php, using the value of the constant $i, He always gets the last value of the…
-
0
votes2
answers7718
viewsA: View html and css alert by javascript
I did something like that, but it didn’t seem very 'right', because the div occupied the space. function display() { var elem = document.getElementById("teste"); if(elem.style.visibility ==…
-
2
votes2
answers7718
viewsQ: View html and css alert by javascript
Good Morning, I am creating a form in html and javascript for validation, my idea is to create a success or failure alert with html and css (cute and etc), but I do not know how to "call" give a…