I want ASP.net to execute the PHP code below. Running it at the end of all the HTML code.
PHP Code:$conn = mysql_connect('localhost', 'username', 'password');
mysql_select_db('db1');
$sql = "INSERT INTO `table1` VALUES (a,b,c,...,z)";
$result = mysql_query($sql, $conn);
Code:<asp:SqlDataSource ID="SqlDataSource1" runat="server" ConnectionString="<%$ ConnectionStrings:ConnMySQL %>" ProviderName="<%$ ConnectionStrings:ConnMySQL.ProviderName %>" SelectCommand="INSERT INTO table1 VALUES (a,b,c, ... z)" DataSourceMode="DataSet"> </asp:SqlDataSource>


Reply With Quote
Bookmarks