got me a database
Posted: Mon Jan 27, 2014 7:12 pm
After mangling my first database by placing it in the wrong data centre, I now have nominally what I was after????
?>
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
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