da cmq lo stesso errore qualche riga + sotto
Codice PHP:
<%@ Page Language="C#" %>
using System.Data;
using MySql.Data.MySqlClient;
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
protected void Page_Load(object sender, EventArgs e)
{
MySqlConnection connection = new MySqlConnection();
connection.ConnectionString = "Data Source=localhost; Database=super4; User ID=admin; password=pass";
connection.Open();
errore:
Server Error in '/' Application.
--------------------------------------------------------------------------------
Compilation Error
Description: An error occurred during the compilation of a resource required to service this request. Please review the following specific error details and modify your source code appropriately.
Compiler Error Message: CS0246: The type or namespace name 'MySqlConnection' could not be found (are you missing a using directive or an assembly reference?)
Source Error:
Line 10: {
Line 11:
Line 12: MySqlConnection connection = new MySqlConnection();
Line 13: connection.ConnectionString = "Data Source=localhost; Database=super4; User ID=admin; password=pass";
Line 14: connection.Open();
come mai !? :master: