Posts by Luis Alberto Batista • 1,002 points
69 posts
-
0
votes2
answers1967
viewsA: PHP - HTML Form with more than two buttons and each perform a different action
At the point where you have the buttons in your HTML, put javascript functions: <div class="button"> <input type="image" name="salvar" src="icons/Salvar2.png" onclick="salvarCliente()">…
-
0
votes3
answers5247
viewsA: System.Unauthorizedaccessexception in C#
You need to edit folder security options, because the process that is calling folder creation and deletion functions does not have the Read and/or write credentials to perform such an operation. You…
c#answered Luis Alberto Batista 1,002 -
-2
votes1
answer1212
viewsA: Error : java.lang.Nullpointerexception: Cannot invoke method Trim()
The error you are getting says that you are calling the TRIM method in through a string that has not been initialized with any valid value, probably a NULL, look for your error there by the…
-
0
votes1
answer694
viewsA: Notice: Trying to get Property 'Descricao' of non-object in C: xampp htdocs testemenu menu.php on line 83
Mate, to fix this, you can exchange your FETCH response method to: $menu = $query->fetchAll(PDO::FETCH_OBJ); But if you want to keep as FECTH_ASSOC, the form of field recovery becomes:…
-
-3
votes2
answers177
viewsA: How to send the password already with the hash to the database
One way to do this would be: $senha = (isset($_POST['senha'])) ? password_hash($_POST['senha'], PASSWORD_BCRYPT) : null; $stmt->bindParam(":senha", $senha); You can make these transformations in…
-
0
votes3
answers83
viewsA: How to consult register that does not contain a certain code?
Use the signal != for NOT Equal or NOT IN (Values), for DOES NOT contain these values. select chamados from tb_chamados inner join tb_acoes on tb_acoes.cod_chamado = tb_chamados.cod_chamado where…
-
1
votes3
answers2634
viewsA: POST method does not work!
Use this form below and submit the form and see if there will be an error. Here at home it worked out good... <!DOCTYPE html> <html> <head> <meta charset="UTF-8">…
-
0
votes1
answer305
viewsA: Notice: Undefined index:
You need, as I understand it, to log in to PHP, because if you don’t, you won’t be able to access something like $_SESSION['Something']; I approved to check the names of the session keys. <div…
phpanswered Luis Alberto Batista 1,002 -
0
votes2
answers159
viewsA: My if is not working as expected
For you to do this there that you want, you have to pass which key of the associative array will use as value within the traversed array, because the structure that closeAll fera is the following:…
-
1
votes2
answers52
viewsA: Inner Join does not work - Error 1054
You are seeking student.course in student, but in creating the student table there is no course column... Join the course table through the class. as soon as I get home I edit the answer with the…
mysqlanswered Luis Alberto Batista 1,002 -
0
votes2
answers7718
viewsA: Warning: mysqli_num_rows() expects Parameter 1 to be mysqli_result, Boolean Given in
To know how many lines came, you can try to do just like this stretch: $result = mysqli_query($conn, $sql); $arrDados = mysqli_fetch_assoc($result); $nLinhas = count($arrDados); if ($nLinhas == 1) {…
phpanswered Luis Alberto Batista 1,002 -
0
votes2
answers3003
viewsA: How to make the HTML page fit the window size
Use the following tag on the Head of your pages. <meta name="viewport" content="width=device-width, initial-scale=1.0, max-scale=1.0"> You’ll see the magic happen... Use Semantic UI to help…
-
0
votes1
answer38
viewsA: Php Extracting items from a list
Add the following code to your table so you have a source of disoaro to pick up your current line (the one that is clicked). <td> <button type="button" onclick="pegarEssaLinha(this)">…
-
0
votes1
answer40
viewsA: PDO error - Call to a Member functio on null
You cannot compare the NAME with the FETCH_ASSOC result, as this returns to the ROW variable, an associative array containing the SELECT response data. public static function…
-
0
votes1
answer124
viewsA: How do PHP accept accentuation?
Put the excerpt below on the part of your page that has the HTML, there where you have the HEAD. <head> <meta charset="utf-8"> </head> Also put in your PHP code on each line that…
phpanswered Luis Alberto Batista 1,002 -
1
votes1
answer43
viewsA: How to display an image with PHP session
Vinicius, as you’ve given no detail of what you have of code, I’m giving you a very generic example of how it could be done, but, this is far from ideal to be done, it’s just a notion of how it…
phpanswered Luis Alberto Batista 1,002 -
0
votes1
answer45
viewsA: Form with enctype makes it impossible to read input text and image upload
Mate, your code is correct... but do the following, I tested here at home, the situation you already recover the ID directly from the last INSERT of the current connection, hence you could remove…
-
0
votes1
answer38
viewsA: filter between two dates with Join
Always remember that reserved words like GROUP BY and ORDER BY comes after the WHERE. Another thing is that every column that is not being used in grouping functions with SUM, COUNT, AVG etc, need…
-
1
votes2
answers22
viewsA: New procedure is not displayed in SQLSERVER
Look man, when I had this problem, I had to get the password set to the administrator, at the moment of installation, I believe that only with it you will be able to access the bank with all the…