I have connected to MSSQL, but i am unaware to do a select statement and print it out. I have done this using MySQL, but unable to convert it to MSSQL. Can someone help me to find the equvalent for mysql_query
,mysql_real_escape_string
,mysql_num_rows
,mysql_fetch_array
or a sample code that helps.
// Connecting to MSSQL - Working
$name = $_POST['myname'];
$x=mysql_query("SELECT * FROM MyTable WHERE Name='".mysql_real_escape_string($name)."'");
$num_rows = mysql_num_rows($x);
while($norows = mysql_fetch_array($x)) {
// PRINT ROW
}