- 0
Problema conectare
-
Similar Content
-
- 2 answers
- 1,600 views
-
- 1 reply
- 108 views
-
- 2 answers
- 926 views
-
Problema turf
By Soryn.,
- 3 answers
- 479 views
-
- 0 replies
- 201 views
-
-
Recently Browsing 0 members
- No registered users viewing this page.
Question
sika
Salutare all, am o sursa (de pe acest site) b-hood cred...(are nume arhiva scripting cica) si am o problema..
el are un cod cam asa
#define SERVER_OFFICIAL 0 #define SERVER_BETA 1 #define LOCALHOST 2 new SERVER_HOSTSTATUS = 0; dupa urmeaza : switch(SERVER_HOSTSTATUS) { case 0: SQL = mysql_connect("Ip-ul", "user", "db", "pass"), print("Server: Oficial"); case 1: SQL = mysql_connect("Ip-ul", "user", "db", "pass"), print("Server: Beta"); case 2: SQL = mysql_connect("Ip-ul", "user", "db", "pass"), print("Server: localhost"); }
eu am inteles ideea de la new SERVER_HOSTSTATUS = (0/1/3 = oficial/beta/localhost)
asa ca sa trecem la problema...am conectat acest gm la host (schimbarea ip user db pas la case 0 si am schimbat server_hostatus = 0)
dar cand intru pe server ma lasa sa ma inregistrez(sa scriu parola sexul email ani) dar dupa ce dau pe butonul register imi deschide fereasta login (normal) si cand trec aceas parola imi spune ca e gresita...(pe localhost cu xamp instalat merge) mam uitat in server_logs de pe host si apare in felu urmator
[18:17:42] [connection] incoming connection: 198.26.131.191:26573 id: 0 [18:17:42] [join] serw has joined the server (0:198.26.131.191) [18:18:32] ==================================================================== [18:18:32] Error ID: 1364, Eroare: Field 'Victim' doesn't have a default value [18:18:32] Callback: [18:18:32] gQuery: INSERT INTO `users` (`name`,`password`, `Age`, `Email`, `Model`, `RegisterDate`, `CChar`) VALUES ('serw','B5413026B62A2C0A7664C4C975D336EB','13', '[email protected]', '0', '2021-1-5 18:18:32', '250') [18:18:32] ==================================================================== [18:18:43] [part] serw has left the server (0:2)
Daca se poate orice idee.. va multumesc..
Link to comment
Share on other sites
11 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.