Jump to content

Sqlite ' Ta Sorgulama Işlemi?


emin.umut
 Share

Recommended Posts

nSerial = Input.GetText("Input1");
nSerial1 = Input.GetText("Input2");






if (nSerial ~= "" and nSerial1 ~= "") then
tInfo_Selected = SQLite.QueryToTable(db, "Select * from kullanici_ogrenci where kadi='".. nSerial .."' and parola='".. nSerial1 .."'")

-- bu gölgede nası bir if sorgusu yaptımam lazım?
result = Dialog.Message("", "Kullanıcı Adı ve Parolanız Doğru");
DialogEx.Close(12345);

elseif (nSerial == "" or nSerial1 == "") then
Dialog.Message("", "Tüm alanları doldurunuz")

else
Dialog.Message("", "Kullanıcı Adı Ya da Parola Yanlış")
end

Input1 ve Input2 gelen değerleri veri tabanındaki değerlerle karşılaştırıp giriş sağlamam gerekiyor.....

Edited by emin.umut
Link to comment
Share on other sites

  • Editor

SQLite.QueryToTable

 

buranın geri dönüşü nasıl bir değer döndürüyor bunu görmeden zor

 

isterseniz dialog message ile tInfo_Selected değerii yazdırın ekrana.

Link to comment
Share on other sites

Aslında isteğim şu, iki girişim var

 

nadi      = Input.GetText("adi");
nparola = Input.GetText("parola");


Tablo ismimde,  kullanici_ogrenci,

 

gelen değerlere göre bir dialog çıkarmak istiyorum doğru ya da yanlış şeklinde, bu şekilde yardımcı olur musunuz?

 

 

Edited by emin.umut
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...