My guess is that VALUES strings must be surrounded with single-tick quotes (unshifted double quotes on my keyboard).
sprintf(cmd, "INSERT INTO prueba VALUES('%s')", Name);
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343
>>(unsigned int)strlen(cmd)
The typecase is not necessary because strlen() returns unsigned int.
Ancient Dragon
Retired & Loving It
30,049 posts since Aug 2005
Reputation Points: 5,662
Solved Threads: 2,343