You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$query="select * from users where id=".$_GET['id'];
$rs=mysqli_query($db,$query);
Fix SQL injection by Using Prepared Statements
$q = "%".$_GET['q']."%";
$query="select * from toys where name like ? or description like ?";
$stmt = mysqli_prepare($db, $query);
mysqli_stmt_bind_param($stmt, 'ss', $q, $q);
mysqli_stmt_execute($stmt);
$rs=mysqli_stmt_get_result($stmt);
The text was updated successfully, but these errors were encountered:
Validate SQL injection by Data Type Validation
Fix SQL injection by Using Prepared Statements
The text was updated successfully, but these errors were encountered: