xfr33 Posted July 4, 2009 Report Share Posted July 4, 2009 Labdien! Mēģinaju izveidot reģistrāciju, kas saistīta ar datu bāzi. Bet met ārā kļūdu. KĻŪDA: Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in /home/a2599236/public_html/register2.php on line 119 Un pats php kods būs atrodams šeit! Paldies jau iepriekš par palīdzību. Quote Link to comment Share on other sites More sharing options...
kechums Posted July 4, 2009 Report Share Posted July 4, 2009 119. rindiņā, nepareiza sintakse pie $_SERVER['REMOTE_ADDR']. Pareizais variants: VALUES('$username', '$password', '$email', '".$_SERVER['REMOTE_ADDR']."', '$name', '$surname', '$bday', '$date') Quote Link to comment Share on other sites More sharing options...
xfr33 Posted July 4, 2009 Author Report Share Posted July 4, 2009 (edited) Paldies, tas palīdzeja, bet tagad radās vēl viena problēma. Es reģistrējos ar lietotajvārdu: test. Tiek mesta šāda kļūda: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''users' WHERE username = 'test'' at line 1 EDIT: Šo kļūdu atrisināju, bet ir nākamā :) Šoreiz gan netieku skaidrībā. Kļūda: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''username', 'password', 'email', 'ip', 'name', 'surname', 'bday', 'date') VALUES' at line 1 Edited July 4, 2009 by xfr33 Quote Link to comment Share on other sites More sharing options...
indoom Posted July 6, 2009 Report Share Posted July 6, 2009 tabulas neliek ' pēdiņās. Vai nu vispār neizmanto pēdiņas vai arī lieto apastrofu ` Quote Link to comment Share on other sites More sharing options...
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.