muratboy31 Posted July 23, 2013 Share Posted July 23, 2013 Merhaba arkadaşlar, Aşağıdaki kodu herhangi bir veri yazmak için kullanıyorum ama hata veriyor ; MySQLConnection, err = MySQL:connect("denemedb", "user", "pass", "172.16.1.2"); a = Input.GetText("adi"); b = Input.GetText("soyadi"); c = Input.GetText("cihaz"); d = Input.GetText("marka"); e = Input.GetText("model"); f = Input.GetText("seri"); MysqlQuery = MySQLConnection:execute("INSERT INTO "..demirbas.."(\""..adi.."\",\""..soyadi.."\",\""..cihaz.."\",\""..marka.."\",\""..model.."\",\""..seri.."\") VALUES ("..a..","..b..","..c..","..d..","..e..","..f..")"); Dialog.Message("Başarılı !", "Bilgi Eklendi!", MB_OK, MB_ICONINFORMATION) Page.Jump("Giris"); Quote Link to comment Share on other sites More sharing options...
KintaRo Posted July 23, 2013 Share Posted July 23, 2013 1. si "172.16.1.2" bu IP adresi yerel ağ değilde bir web sitesine ait ise Remote MySQL açık olmalıdır. 2. si ise VALUES ("..a..","..b..","..c..","..d..","..e..","..f..")"); şeklinde değil VALUES ('"..a.."','"..b.."','"..c.."','"..d.."','"..e.."','"..f.."')"); şeklinde olmalı. yani ' ' ları unutmuşsunuz. Quote Link to comment Share on other sites More sharing options...
muratboy31 Posted July 23, 2013 Author Share Posted July 23, 2013 Evet local de çalışıyorum, ayrıca bu şekilde denedim yine aynı hatayı verdi ! MysqlQuery = MySQLConnection:execute("INSERT INTO "..demirbas.."(\""..adi.."\",\""..soyadi.."\",\""..cihaz.."\",\""..marka.."\",\""..model.."\",\""..seri.."\") VALUES ('"..a.."','"..b.."','"..c.."','"..d.."','"..e.."','"..f.."')"); Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted July 23, 2013 Editor Share Posted July 23, 2013 O şekilde olmayacak MysqlQuery = MySQLConnection:execute("INSERT INTO tabloadi(adi,soyadi,cihaz.,marka,model,seri) VALUES ('"..a..'",'"..b.."','"..c.."','"..d.."','"..e.."','"..f.."')"); Quote Link to comment Share on other sites More sharing options...
muratboy31 Posted July 23, 2013 Author Share Posted July 23, 2013 Teşekürler pairs ve KintaRo şimdi oldu. @ KintaRo Ayrıca uzak bağlantıda Remote MySQL açık olmalıdır demiştin bunu nasıl yapıyoruz acaba ? Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted July 23, 2013 Editor Share Posted July 23, 2013 web sitenin Cpanelindne yapıyorsun. Buray giriyorsun. http://prntscr.com/1h1thl Add host kısmından ekliyorsun bunun gib http://prntscr.com/1h1tk2 Quote Link to comment Share on other sites More sharing options...
muratboy31 Posted July 23, 2013 Author Share Posted July 23, 2013 Buldum teşekürler arkadaşlar. Quote Link to comment Share on other sites More sharing options...
Editor pairs Posted July 23, 2013 Editor Share Posted July 23, 2013 Burasıyla benim sana gösterdiğim ekran bir değilki :D. Quote Link to comment Share on other sites More sharing options...
muratboy31 Posted July 23, 2013 Author Share Posted July 23, 2013 (edited) Ufak bir sorum daha var arkadaşlar, Aynı veri tabanına farklı bir tablo daha ekledim ama içine herhangi bir veri yazamıyorum, aslında hata vermiyor ama veride yazılmıyor ! MySQLConnection, err = MySQL:connect("deneme", "user", "pass", "172.16.1.2"); yeni = Input.GetText("yeni_cihaz"); MysqlQuery = MySQLConnection:execute("INSERT INTO cihazlar(cihaz) VALUES ('"..yeni.."')"); Dialog.Message("Eklenedi!", "Cihaz Eklendi!", MB_OK, MB_ICONINFORMATION) Page.Jump("Page1"); Edited July 24, 2013 by muratboy31 Quote Link to comment Share on other sites More sharing options...
turkoglu98 Posted July 28, 2013 Share Posted July 28, 2013 pairs arkadaşın websitesinde cpanel yüklü olmayabilir mesela ben hostgator kullanıyorum ve sitelerimde cpanel yüklü. bir kaç sitem ise natroda ve natroda farklı bir panel var ör: http://panel.turkoglu.net/ natrodaki site http://pclad.com:2082/ hostgatordaki site Quote Link to comment Share on other sites More sharing options...
muratboy31 Posted July 28, 2013 Author Share Posted July 28, 2013 teşekürler turkoglu98 sorunu çözdüm geçen hafta, kullanıcıda yazma iznini kaldırmışım. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
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.