|
Wrong SQL statement
SqlDataAdapter mysqlSqlDataAdapter1 = new SqlDataAdapter ("select top 2 * from aspnet_PhoneItem where Type = 'Music'", mysqlSqlConnection);
to
SqlDataAdapter mysqlSqlDataAdapter1 = new SqlDataAdapter ("select top 2 * from aspnet_PhoneItem where Type =" + "music", mysqlSqlConnection);
SqlDataAdapter mysqlSqlDataAdapter2 = new SqlDataAdapter ("select top 2 * from aspnet_PhoneItem where Type =" + "Smart", mysqlSqlConnection);
to
SqlDataAdapter mysqlSqlDataAdapter2 = new SqlDataAdapter ("select top 2 * from aspnet_PhoneItem where Type =" + "Smart", mysqlSqlConnection); |
|