Meddelande

Minska
No announcement yet.

Call Mysql from Ansi-C

Minska
X
 
  • Filter
  • Klockan
  • Show
Clear All
new posts

  • Call Mysql from Ansi-C

    Problem med ange en sträng-variabel mysql_query insert value.

    char tempstr[55];

    sprintf(tempstr,"%s","obetald");

    if(mysql_query(conn,"INSERT INTO Fakturor (FAKTSTATUS) VALUES (tempstr)"))
    {
    fprintf(stderr, "%s\n", mysql_error(conn));
    exit(1);
    }
Working...
X