Questions tagged as 'mysqli'

2
answers

Error fetching data from bank

When I try to do a BD search for a login, it returns the following error:    Recoverable fatal error: Object of class mysqli_result could not be   converted to string in C: \ xampp \ htdocs \ TCC \ index.php on line 66 I need to pass all...
asked by 03.09.2017 / 00:15
1
answer

SELECT ... WHERE LIKE name bind_param

I have the following code: <?php $link = new mysqli("localhost", "root", "minhasenha", "meu_db"); $produto = $_GET['q']; $produto = '%'.$produto.'%'; $busca_produtos = $link->prepare("SELECT id, nome_com from clientes where nome_com...
asked by 01.08.2017 / 20:45
1
answer

Loading on demand

I am trying to make a load system on demand and I do not know anything about ajax and I did not quite understand how it would work. I have a post system that shows a 10 post quantity on my page, and when I click on my second page (pagination)...
asked by 25.05.2017 / 05:20
1
answer

Warning: mysqli_query () expects parameter 1 to be mysqli, integer given

I have this code below: <?php $conecta_no_banco = require_once ('conecta_db.php'); $login = $_POST['login']; $senha = $_POST['senha']; $sql = mysqli_query($conecta_no_banco,"SELECT usuario FROM gerenciador_de_socios.autenticacao_usuarios")...
asked by 25.05.2017 / 07:17
3
answers

PHP - Error when I try to login - mysqli_num_rows () expects parameter 1 to be mysqli_result

Good afternoon, I was trying to study a registration system using session in php the part of the registry works normal, the problem is at the time of logging, even with the correct password I get the following 2 errors: Notice: Undefined vari...
asked by 30.12.2017 / 21:47
1
answer

Convert MySQL code to MySQLi [closed]

3 Errors are presented:    Notice: Undefined variable: save in C: \ xampp \ htdocs \ index.php on line 6    Warning: mysql_num_rows () expects parameter 1 to be resource, boolean given in C: \ xampp \ htdocs \ index.php on line 133    No...
asked by 24.10.2015 / 17:57
1
answer

How to pass the dynamic variables from a url to php via ajax

First of all, I have already looked at several other posts about the subject here and I did not find what I need, my scenario is the following I am generating several EX links: challenge.php? id = 2 & name = joao challenge.php? id-3% name...
asked by 13.02.2016 / 03:24
3
answers

Search for value corresponding to weight

I have a table with values, where each value is according to weight (kg).    Up to 3kg = $ 20.00       Up to 5kg = $ 25.00       Up to 10kg = $ 28.00 SELECT estado, kg, valorCap, valorExcedCap, valorAloremCap, prazoCap FROM transporta...
asked by 14.05.2015 / 21:49
2
answers

1054 - Unknow colunm in on clause

What is wrong with this query? SELECT clientes.idClientes, clientes.nome, clientes.bloqueado, planosclientes.idPlanos, planos.nome, enderecos.bairro, enderecos.cidade FROM planoscliente...
asked by 05.10.2015 / 14:39
1
answer

MySQL returning null wrongly - MYSQLI PHP

I'm trying to do a SELECT through PHP's mysqli, but it's returning null in all parameters of the object returned by $ mysqli-> query ($ sql) >. ItstillreturnstherowsthatIselectedfromthetable,butsomevaluescomenullalso: Follow my code:...
asked by 22.12.2014 / 20:29