**PHP Code**
1000,
5 => 300,
9 => 200,
];
$stmt = $pdo->prepare('UPDATE users SET bonus = bonus + ? WHERE id = ?');
foreach ($data as $id => $bonus)
{
$stmt->execute([$bonus, $id]);
}
?>
\\
**Java Code**
import java.io.*;
public class Main {
public static void main(String[] args) {
try {
BufferedWriter out = new BufferedWriter(new FileWriter("outfilename"));
out.write("aString");
out.close();
System.out.println("File created successfully");
}
catch (IOException e) {
}
}
}
\\
**SQL Code**
SELECT Orders.OrderID, Customers.CustomerName, Orders.OrderDate
FROM Orders
INNER JOIN Customers ON Orders.CustomerID=Customers.CustomerID;
\\
**XML Code**
Tove
Jani
Reminder
Don't forget me this weekend!
\\
Reference: https://www.dokuwiki.org/plugin:code