954,600 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

In HTML Website connectivity to MS Access Database that is hosted on NIC Server

Please tell me that in Html website what is the code in javascript to connect to a MS Access database that is hosted on NIC Server.

If not so possible in javascript then any other option what can added in HTML website

anuradha2011
Newbie Poster
2 posts since Sep 2011
Reputation Points: 10
Solved Threads: 0
 

php can connect to odbc, not sure if this helps

<?php
$conn=odbc_connect('northwind','','');
if (!$conn)
  {exit("Connection Failed: " . $conn);}
$sql="SELECT * FROM customers";
$rs=odbc_exec($conn,$sql);
if (!$rs)
  {exit("Error in SQL");}
echo "<table><tr>";
echo "<th>Companyname</th>";
echo "<th>Contactname</th></tr>";
while (odbc_fetch_row($rs))
  {
  $compname=odbc_result($rs,"CompanyName");
  $conname=odbc_result($rs,"ContactName");
  echo "<tr><td>$compname</td>";
  echo "<td>$conname</td></tr>";
  }
odbc_close($conn);
echo "</table>";
?>
gotboots
Junior Poster in Training
54 posts since Jun 2011
Reputation Points: 12
Solved Threads: 4
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: