Code: Select all
<?php
$conn = new PDO ( \"sqlsrv:server = tcp:b0p6dk8t8h.database.windows.net,1433;
Database = hardcore-games\", \"webmaster\", \"{your_password_here}\");
$conn->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );\r\n}\r\n
catch ( PDOException $e ) {
print( \"Error connecting to SQL Server.\" );
die(print_r($e));
}
?>
so I wanted to conjure up some functions, create a table, then i can make forms to post to the table, but code on the backend is a tad tricky