30.12.2012, 06:45
For some reason, the following two SQL queries aren't doing anything.
and
Please could someone help?
pawn Code:
format(Query, sizeof(Query), "INSERT INTO `contracts` (`cID`, `ucon`, `ucen`, `price`) VALUES (NULL, '%s', '%s', '%i')", cContractor, cContractee, cContractPrice);
mysql_query(Query);
print(Query);
and
pawn Code:
format(query, sizeof(query), "SELECT `user` FROM accounts WHERE `user`='%s'", name);
mysql_query(query);
print(query);
if(!mysql_num_rows())
{
SendClientMessage(playerid, GREY, "That name isn't in the database.");
}