Posts by kervincandido • 164 points
15 posts
-
1
votes1
answer64
viewsA: PHP MYSQL - Login System - Accepts numeric values only
Change $query = "select nome from usuarios where nome = '$usuario' && senha = md5($senha)"; For $query = "select nome from usuarios where nome = '$usuario' && senha = md5('$senha')";…
-
1
votes2
answers718
viewsA: Mysql - Create field to insert more than one value from another table
From what you described it becomes a relation from N to N, as a player may prefer one more game as well as a game may be preferred by more than one player, in which case you must create another…
-
-1
votes1
answer55
viewsA: Help me = Error: Call to a Member Function prepare() on null in D: wamp www New folder user classes.php on line 29
I believe your problem is that overall when you are in a class you do not use it to refer to the $Pdo attribute you declare you should use $this->So this goes for all attributes and method calls…
phpanswered kervincandido 164 -
1
votes1
answer445
viewsA: Exception in thread "AWT-Eventqueue-0" java.lang.Nullpointerexception to write to Mysql database
Apparently your connection is null when you call through Connexion.getConexao(), as it is a static method it does not pass by the constructor which is where you create the connection, I suggest a…
javaanswered kervincandido 164 -
4
votes2
answers98
viewsQ: Is Try-with-Resource in PHP?
Exists in PHP something similar to Try with Resource java? Or I have to close resources in the finally even?
-
0
votes1
answer24
viewsA: PDO Doubt SQL Injection
It’s safe, as long as you don’t concatenate parameters with your query($Insert in case) it’s all safe
-
0
votes2
answers319
viewsA: Error: Exception in thread "main" java.lang.Nullpointerexception at pub.Pub.main(Pub.java:18)
As Welson Teles said you have to create the Band type object before assigning the value, recommend that you put in the Musico class constructor to start the variable so you wouldn’t have to create…
-
0
votes2
answers493
viewsA: Error Converting String to Numbers in Java
use next(); invez de nextLine() when picking up frequency frequencia = read.next();
-
0
votes2
answers595
viewsA: List BD data using echo (PDO)
little brother you have to treat the result if I am not mistaken, play the variable that receives the result in an array and then do the foreach in the array
-
0
votes1
answer92
viewsA: My SQL does not find accented words
Put this in your bank ALTER DATABASE `sua_base` CHARSET = Latin1 COLLATE = latin1_swedish_ci; More information follows the link -> What character encoding (Collation) should I use in Mysql? Note.…
-
0
votes2
answers301
viewsA: Consultation in bank with accentuation in the table
Put this in your bank ALTER DATABASE `sua_base` CHARSET = Latin1 COLLATE = latin1_swedish_ci; More information follows the link -> What character encoding (Collation) should I use in Mysql? Note.…
-
2
votes4
answers2768
viewsA: How do I enter a value in every record in a column of a table?
update categoria set coluna='3' where coluna != '3' I imagine it’s something like that. This only works on the console or if vc disable mysql security, because it does not leave security…
-
1
votes2
answers2042
viewsA: Problems passing instantiated object by function parameter with php
in the email class in your send method before the parameter specifies the obj q will pass type public function send(Usuario $usuario){ // seu codigo } I hope that’s what you’re looking for…
phpanswered kervincandido 164 -
0
votes1
answer19
viewsA: Start the bank service with a function
Mano if mysql is turned off there is no way you can start your database, you can configure in your Main class to open mysql so q run your project using "Process". example: Process cal =…
-
1
votes1
answer323
viewsA: Java Array List: How to show a Jlist the values and Positions of the String Array
for(int i =0; i<=n; i++){ r = Integer.parseInt(contatos.get(i).toString()); text = contatos.get(i).toString(); } -your "text =" it goes on writing every time you pass only replace by "+=" but I…