Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $mysqli = new mysqli("localhost", "root", "admin", "base");
- /* Comprueba la conexión */
- if ($mysqli->connect_errno) {
- printf("Connect failed: %sn", $mysqli->connect_error);
- exit();
- }
- if (!$mysqli->query("SET a=1")) {
- printf("Errormessage: %sn", $mysqli->error);
- }
- /* Cierra la conexión */
- $mysqli->close();
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement