Click here to Skip to main content
15,888,908 members
Home / Discussions / C#
   

C#

 
AnswerRe: specify area for Drag'n'Drop Pin
Dave Kreskowiak19-Jul-11 3:59
mveDave Kreskowiak19-Jul-11 3:59 
AnswerRe: specify area for Drag'n'Drop Pin
Alan N19-Jul-11 4:30
Alan N19-Jul-11 4:30 
Questionget parent and level of the xml node from XPathNavigator Pin
NarVish19-Jul-11 0:34
NarVish19-Jul-11 0:34 
AnswerRe: get parent and level of the xml node from XPathNavigator Pin
Mirko198019-Jul-11 1:38
Mirko198019-Jul-11 1:38 
GeneralRe: get parent and level of the xml node from XPathNavigator Pin
NarVish19-Jul-11 2:35
NarVish19-Jul-11 2:35 
GeneralRe: get parent and level of the xml node from XPathNavigator Pin
Mirko198019-Jul-11 4:58
Mirko198019-Jul-11 4:58 
GeneralRe: get parent and level of the xml node from XPathNavigator Pin
NarVish19-Jul-11 19:01
NarVish19-Jul-11 19:01 
QuestionC# Mysql query problem Pin
nighttrain_18-Jul-11 23:16
nighttrain_18-Jul-11 23:16 
Hi there good people !

I've got strange problem with query into C# code to MySQL database. The point is i got this query:
m_insert_cmd2 = new MySqlCommand("INSERT INTO tb_rezerwacja (kwota, ilosc_osob, w_tym_ilosc_dzieci, data_od, data_do, FK_pokoj_id, FK_zamowienie_id) VALUES (, '" + tbPrice.Text + "', '" + tbNumberOfPeople.Text + "', '" + tbChildren.Text + "', '" + tbStartDate.Text + "', '" + tbEndDate.Text + "',  @pokoj_id,  @zamowienie_id)", m_conn);

which is working but put all field in database to NULL without parameters : @pokoj_id and @rezerwacja_id - that's good. All tb.. are editboxes no matter what i write to them it always put nulls in database. I tried a lot of combinations with this query but i can;t do it working 100%.

For example this query works fine (if i put static data) it's all put in database, no nulls:
m_insert_cmd2 = new MySqlCommand("INSERT INTO tb_rezerwacja (kwota, ilosc_osob, w_tym_ilosc_dzieci, data_od, data_do, FK_pokoj_id, FK_zamowienie_id) VALUES (' 345', '3', '3', '0000-00-21', '0000-00-21',  @pokoj_id,  @zamowienie_id)", m_conn);


What i do wrong, please help.
best regards,
nighttrain
AnswerRe: C# Mysql query problem Pin
Blue_Boy18-Jul-11 23:32
Blue_Boy18-Jul-11 23:32 
GeneralRe: C# Mysql query problem Pin
nighttrain_18-Jul-11 23:52
nighttrain_18-Jul-11 23:52 
SuggestionRe: C# Mysql query problem Pin
GuyThiebaut19-Jul-11 1:59
professionalGuyThiebaut19-Jul-11 1:59 
GeneralRe: C# Mysql query problem Pin
nighttrain_19-Jul-11 2:38
nighttrain_19-Jul-11 2:38 
GeneralRe: C# Mysql query problem Pin
GuyThiebaut19-Jul-11 3:05
professionalGuyThiebaut19-Jul-11 3:05 
AnswerRe: C# Mysql query problem Pin
PIEBALDconsult19-Jul-11 2:45
mvePIEBALDconsult19-Jul-11 2:45 
GeneralRe: C# Mysql query problem Pin
nighttrain_19-Jul-11 3:35
nighttrain_19-Jul-11 3:35 
AnswerRe: C# Mysql query problem [modified] Pin
BobJanova19-Jul-11 3:56
BobJanova19-Jul-11 3:56 
GeneralRe: C# Mysql query problem Pin
PIEBALDconsult19-Jul-11 14:22
mvePIEBALDconsult19-Jul-11 14:22 
GeneralRe: C# Mysql query problem Pin
BobJanova20-Jul-11 11:19
BobJanova20-Jul-11 11:19 
GeneralRe: C# Mysql query problem Pin
PIEBALDconsult20-Jul-11 14:18
mvePIEBALDconsult20-Jul-11 14:18 
GeneralRe: C# Mysql query problem Pin
BobJanova21-Jul-11 7:02
BobJanova21-Jul-11 7:02 
GeneralRe: C# Mysql query problem Pin
sugais19-Jul-11 20:51
sugais19-Jul-11 20:51 
GeneralRe: C# Mysql query problem [modified] Pin
nighttrain_20-Jul-11 5:43
nighttrain_20-Jul-11 5:43 
GeneralRe: C# Mysql query problem Pin
nighttrain_21-Jul-11 21:26
nighttrain_21-Jul-11 21:26 
QuestionHow to Finding Solutions Pin
Anubhava Dimri18-Jul-11 21:35
Anubhava Dimri18-Jul-11 21:35 
AnswerRe: How to Finding Solutions Pin
Blue_Boy18-Jul-11 22:02
Blue_Boy18-Jul-11 22:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.