Colocar Resposta 
 
Avaliação do Tópico:
  • 0 votos - 0 Média
  • 1
  • 2
  • 3
  • 4
  • 5
MyBB SQL Error
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]
Procurar todas as mensagens deste utilizador
Citar esta mensagem numa resposta
Colocar Resposta 


Mensagem neste Tópico
MyBB SQL Error - migs - 28-07-2014, 23:43
RE: MyBB SQL Error - sharlynharville - 14-12-2017 14:39
RE: MyBB SQL Error - sharlynharville - 14-12-2017, 14:40

Saltar Fórum:


Utilizadores a ver este tópico: 1 Visitante(s)