Mysql problem, help.
#1

Is there anything wrong with this line?

Код:
mysql_format(dbHandle, query, sizeof(query), "INSERT INTO `apbs` (id, charge, suspect, officer) VALUES (%d, '%s', '%s', '%s')", number, charge, suspect, name);
what did I do wrong? Sorry my bad english, i'm portuguese.
Reply
#2

Yup, your query column names aren't matching the db ones.
Compare
Quote:

`apbs` (id, charge, suspect, officer)

to the fields in your db.
Reply
#3

Yes, yes..



Can you tell me why all IDs are states to 0?

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)