MyBB SQL Error
|
28-07-2014, 23:43
Mensagem: #1
|
|||
|
|||
MyBB SQL Error
Enquanto estava a tentar publicar uma resposta, apanhei um erro que poderá ser relevante para o funcionamento geral da board.
Citar:MyBB SQL Error Ocorreu quando publiquei este post. Twitter Facebook Youtube Procura-se... Rede WirelessPT |
|||
14-12-2017, 14:39
Mensagem: #2
|
|||
|
|||
RE: MyBB SQL Error
$ sql = "INSERT INTO NEWSLETTER (name, email)
VALUES ('$ _POST [name]', '$ _ POST [email]') "; This is only IF your table is named: NEWSLETTER named professional assignment writers and your fields in your NEWSLETTER table are name, and email. The id should auto increment, setup as an identity, so you do not need to add that manually. name, and email. The id should auto increment, setup as an identity, so you do not need to add that manually. [color=#26282a][size=small]IMPORTANT NOTE: I would HIGHLY stress you to sanitize your data. (Make sure it is safe from SQL injection) -> http://en.wikipedia.org/wiki/SQL_injecti...ze][/color] |
|||
14-12-2017, 14:40
Mensagem: #3
|
|||
|
|||
RE: MyBB SQL Error
$sql="INSERT INTO NEWSLETTER (name,email)
VALUES ('$_POST[name]','$_POST[email]')"; This is only IF your table is named : NEWSLETTER and your fields in your NEWSLETTER table are name, and email. The id should auto increment, setup as an identity, so you don't need to add that manually. professional assignment writers [color=#26282a][size=small]IMPORTANT NOTE: I would HIGHLY stress that you sanitize your data. (Make sure it is safe from SQL injection) -> http://en.wikipedia.org/wiki/SQL_injecti...ze][/color] |
|||
« Mais Antigo | Mais Recente »
|
Utilizadores a ver este tópico: 1 Visitante(s)