Xevomu
New Member
- Joined
- Oct 23, 2018
- Messages
- 10
- Reaction score
- 1
Hello!
I have doubts as to the safe use by select/insert/updates with querys in znote aac.
1)
Is it better to use a mysqli_connect or use the znote functions?
2)
What is the safest way to protect against sql-injection?
or
or
or
I have doubts as to the safe use by select/insert/updates with querys in znote aac.
1)
Is it better to use a mysqli_connect or use the znote functions?
2)
What is the safest way to protect against sql-injection?
Code:
mysqli_query($connection, "UPDATE znote_accounts SET points = '$points' WHERE account_id = '$accountid' LIMIT 1");
Code:
mysqli_query($connection, "UPDATE znote_accounts SET points = '" . $points. "' WHERE account_id = '". $accountid . "' LIMIT 1");
Code:
mysql_update("UPDATE znote_accounts SET points = '$points' WHERE account_id = '$accountid' LIMIT 1;");
Code:
mysql_update("UPDATE znote_accounts SET points = '" . $points. "' WHERE account_id = '". $accountid . "' LIMIT 1;");