Ir para conteúdo
Fórum Script Brasil
  • 0

Sintaxe errada?


Bruno Rocha

Pergunta

Olá pessoal,

Gostaria de saber se esse código tem algum erro de sintaxe?

mysql_query("UPDATE $property_table SET  
propertyoption = " . $sql->quote ( $cgi->getValue ( "propertyoption" ) ) . ", 
propertytype = " . $sql->quote ( $cgi->getValue ( "propertytype" ) ) . ", 
propertyprice = " . $sql->quote ( $cgi->getValue ( "propertyprice" ) ) . ", 
propertybedrooms = " . $sql->quote ( $cgi->getValue ( "propertybedrooms" ) ) . ",
propertybathrooms = " . $sql->quote ( $cgi->getValue ( "propertybathrooms" ) ) . ",
propertyyearbuilt = " . $sql->quote ( $cgi->getValue ( "propertyyearbuilt" ) ) . ",
propertylivingarea = " . $sql->quote ( $cgi->getValue ( "propertylivingarea" ) ) . ",
propertyplotsize = " . $sql->quote ( $cgi->getValue ( "propertyplotsize" ) ) . ",
propertyaddress = " . $sql->quote ( $cgi->getValue ( "propertyaddress" ) ) . ",
propertylocation = " . $sql->quote ( $cgi->getValue ( "propertylocation" ) ) . ", 
propertypostcode = " . $sql->quote ( $cgi->getValue ( "propertypostcode" ) ) . ",
shortdescription = " . $sql->quote ( $cgi->getValue ( "shortdescription" ) ) . ", 
longdescription = " . $sql->quote ( $cgi->getValue ( "longdescription" ) ) . ",
propertystatus = " . $sql->quote ( $cgi->getValue ( "propertystatus" ) ) . ", 
propertyshow = " . $sql->quote ( $cgi->getValue ( "propertyshow" ) ) . ",
featuredproperty = " . $sql->quote ( $cgi->getValue ( "featuredproperty" ) ) . ",
virtualtour = " . $sql->quote ( $cgi->getValue ( "virtualtour" ) ) . ",
propertyowner = " . $sql->quote ( $cgi->getValue ( "propertyowner" ) ) . "  
WHERE id = '$_POST[id]'") or die ("$DatabaseError2");

Preciso muuuuuuuuuuuuuito de ajuda.

Grande abraço!

Editado por Jonathan Queiroz
Adcionar tag's (Jonathan)
Link para o comentário
Compartilhar em outros sites

1 resposta a esta questão

Posts Recomendados

Participe da discussão

Você pode postar agora e se registrar depois. Se você já tem uma conta, acesse agora para postar com sua conta.

Visitante
Responder esta pergunta...

×   Você colou conteúdo com formatação.   Remover formatação

  Apenas 75 emoticons são permitidos.

×   Seu link foi incorporado automaticamente.   Exibir como um link em vez disso

×   Seu conteúdo anterior foi restaurado.   Limpar Editor

×   Você não pode colar imagens diretamente. Carregar ou inserir imagens do URL.



  • Estatísticas dos Fóruns

    • Tópicos
      152,2k
    • Posts
      652k
×
×
  • Criar Novo...