Free for PREMIUM members
Go Premium for a chance to win a PS4. Enter to Win
Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.
if (!$db = new PDO("sqlsrv:Server=localhost;Database=$db_name", $db_user , $db_pass))
$firstName = "John";
$lastName -= "Smith";
$total = 5;
$stmt = $db->prepare('INSERT INTO dbo.myTable (FirstName, LastName, Total)
$stmt->bindValue(':first_name', $firstName, PDO::PARAM_STR);
$stmt->bindValue(':last_name', $lastName, PDO::PARAM_STR);
$stmt->bindValue(':total', $total, PDO::PARAM_INT);
$arr = $stmt->errorInfo();
$stmt = null;
Open in new window
We value your feedback.
Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!