Help me pls!
I'm still learning this MySQL!
Here is my connection:
Here is my code:
So the connection is tested and it works, but why there is nothing when I insert this values?
What I have to do before inserting this values? Please help me, +1 REP!
I'm still learning this MySQL!
Here is my connection:
PHP Code:
sqlll = mysql_connect("127.0.0.1", "root", "", "sa-mp");
PHP Code:
new query[256];
format(query, sizeof(query), "INSERT INTO `houses`(`ID`, `Owner`, `Price`, `X`, `Y`, `Z`, `World`, `X2`, `Y2`, `Z2`, `A2`, `Int:X`, `Int:Y`, `Int:Z`, `Int:X2`, `Int:Y2`, `Int:Z2`, `Int:A2`, `Interior`, `Spawn:X`, `Spawn:Y`, `Spawn:Z`, `Spawn:A`, `Status`) VALUES (%d, %s, %d, %f, %f, %f, %d, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %f, %d, %f, %f, %f, %f, %d)",
h, HouseInfo[h][hOwner], HouseInfo[h][hPrice], HouseInfo[h][hX], HouseInfo[hY], HouseInfo[h][hZ]);
mysql_query(sqlll, query);
What I have to do before inserting this values? Please help me, +1 REP!