How to make a database connection
<p>Using MySQL &amp; Java Script</p>

<p>I want to make a mysql connection in Java Script, then how can i get a table value by using this connection.</p>

<p>ASP.Net code</p>

<p>con.ConnectionString =
                        "Dsn=server1;" +
                        "Uid=root;" +
                        "Pwd=root;";
            con.Open();</p>

<pre><code>cmd = new OdbcCommand("Select * from tb_values", con);
cmd.ExecuteNonQuery();
</code></pre>

<p>Above Code is working in asp.net, but i want to make a connection &amp; select a values by using JavaScript.</p>

<p>Need JavaScript Code Help.</p>
