Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • i changed it from GetString() to GetInt32() ,still no return value , and the column type is INT Commented Mar 20, 2012 at 13:10
  • Have you made sure that there actually is a record that matches x? Commented Mar 20, 2012 at 13:11
  • yea i tested it on Mysql Command and it worked , even in the code replaced X with a know product name , still no return value. Commented Mar 20, 2012 at 13:34
  • Just noticed that there was an error in the code - when creating the command, the second parameter must be connection, not conn as conn doesn't exist :-) Commented Mar 20, 2012 at 13:44