MySQL Forums
Forum List  »  PHP

Re: Notice: Object of class mysqli could not be converted to int in C:\wamp64\www\
Posted by: Barry Galbraith
Date: October 07, 2016 11:25PM

Your form is POSTing variables named
name
email
phone
cell
address
subject
message

Then salvatest.php is trying to read variables named
$_POST['nome']
$_POST['email']
$_POST['telefone']
$_POST['celular']
$_POST['endereco']
$_POST['assunto']
$_POST['mensagem']

See something wrong here? Only one of your variables has a chance of being there, $_POST['email']
You have to use the variables you send. They don't magically change names.

Also, salvatest.php is trying to
include_once("conexao.php")
and your connection file is called connect.php

So, either rename your connect.php to conexao.php, or include connect.php

Good luck,
Barry.

Options: ReplyQuote


Subject
Written By
Posted
Re: Notice: Object of class mysqli could not be converted to int in C:\wamp64\www\
October 07, 2016 11:25PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.