Bruno Rocha Postado Agosto 30, 2009 Denunciar Share Postado Agosto 30, 2009 (editado) 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 Agosto 30, 2009 por Jonathan Queiroz Adcionar tag's (Jonathan) Citar Link para o comentário Compartilhar em outros sites More sharing options...
0 Jonathan Queiroz Postado Agosto 30, 2009 Denunciar Share Postado Agosto 30, 2009 Tente dar um echo na sua query e psote aqui o resultado, fica mais fácil de avaliar. Citar Link para o comentário Compartilhar em outros sites More sharing options...
Pergunta
Bruno Rocha
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 QueirozAdcionar 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.