السلام عليكــم ور]حمـة الله وبركاتــه ،،
عتدي مشكل في هدا الكود وهي لايرجع النتيجة
dbCon=connect();
String Ch = "";
try {
Statement s = dbCon.createStatement();
ResultSet rs= s.executeQuery("SELECT URL FROM Table1 WHERE KeyWords = '"+KeyWords+"'");
while (rs.next()) Ch = rs.getString("URL");
}catch(SQLException e) { }
close();
return Ch;
}
public static void main (String []args)throws ClassNotFoundException, SQLException
{
// String s="driver";
Bdd b=new Bdd();
System.out.println("fonction "+b.Recherche(s));
}
public static String Recherche(String KeyWords) throws SQLException, ClassNotFoundException {