Autor Beitrag
Luncustaf
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324

Win 2k
D7 Ent.
BeitragVerfasst: Mi 25.12.02 05:33 
hi,

sorry falls ich hier falsch bin aber hat ja mit datenbanken zu tun.

ich benutze diesen code.

ausblenden Quelltext
1:
2:
3:
4:
5:
6:
   SQL.Close;
   Query1.Sql.Clear;
   Query1.Sql.Add('SELECT * FROM User WHERE UserId=1');
   SQL.Open;
   Label1.Caption := Query1.FieldByName('User').AsString;
   SQL.Close;


Der sagt mir aber immer das das Feld user nicht exisitiert. zur datenbank bin ich connected - aber der findet das feld net.

kann mir da jemand helfen? oder kann mir jemand sagen wo ich die befehle für die zeos kpmo finde :(


gr€€tz
Sharky
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 20



BeitragVerfasst: Mi 25.12.02 10:14 
Hai Luncustaf,

Du hast für die Tabelle und ein Feld in der Tabelle den selben Namen (User) verwendet. Es gibt Datenbanken die das nicht mögen.

Ändere doch einmal das Feld User in User_Name.
Luncustaf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324

Win 2k
D7 Ent.
BeitragVerfasst: Mi 25.12.02 13:57 
Hi,

jo stimmt darauf hab ich gar nicht geachtet - mache nicht so oft was mit datenbanken - aber der fehler besteht weiterhin :(


gr€€tz
Luncustaf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324

Win 2k
D7 Ent.
BeitragVerfasst: Mi 25.12.02 14:41 
hmm hab gerade nochmal rumgespielt - und nun hab ich nen ganz anderes problem mit der zeos komponente und zwar meint er das eine bestimmte dll nicht da wäre - also werde ich gestern denke ich mal net zeos verwendet habe nals ich den code oben verwendet hab ich weis nt mhetr genau war schon biserl spät :)

aber kann mir jemand sagen wie man das am einfachste nmacht?

ich hab ne mysql datenbank im hintergrund am alufen.


gr€€tz
bis11
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 1247
Erhaltene Danke: 2

Apple Mac OSX 10.11

BeitragVerfasst: Mi 25.12.02 14:43 
Hi,

du mußt noch die Datei libmysql.dll ins Windows\system32 Verzeichnis kopieren.
Luncustaf Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 324

Win 2k
D7 Ent.
BeitragVerfasst: Mi 25.12.02 14:54 
hi,


die datei ist dort schon enthalten - und ne andere fragewenn ich die da richtig drinne hab muss ich die dann mit dem programm mitliefern?


gr€€tz