sql server - how to connect to mssql using php mssql() -
there sample code below connect mysql
<?php $dbh = new pdo('mysql:host=localhost;dbname=register', 'root', '12345'); $stmt = $dbh->prepare("insert registered(name, email, password) values (?,?,?)"); $stmt->bindparam(1, $name); $stmt->bindparam(2, $email); $stmt->bindparam(3, $pwd); $name = $_post["fname"]; $email = $_post["email"]; $pwd = $_post["pwd"]; $stmt->execute(); echo "<p>thank registering!</p>"; ?>
but need similar code in above connect "mssql" database using mssql() function examle refer http://www.wikihow.com/create-a-secure-login-script-in-php-and-mysql in above link there connect mysql without pdo
Comments
Post a Comment