Questions tagged as 'mysqli'

0
answers

Search via GET does not return results correctly

I'm having a problem with a GET search. I have the following code: <?php //envio o charset para evitar problemas com acentos header("Content-Type: text/html; charset=UTF-8"); include_once ('bd/bd.php'); $cnpj = filter_input(INP...
asked by 21.11.2018 / 18:23
1
answer

PHP MySQL error - mysql_num_rows () [duplicate]

I'm having trouble correcting this error, I do not know much about language (almost anything). The error that appears on the page is this: Warning: mysql_num_rows() expects parameter 1 to be resource, boolean given in C:\Program Files (x86)\...
asked by 19.11.2018 / 07:44
1
answer

Errors in mysqli, expected parameters [duplicate]

The following errors are appearing:    Warning: mysqli_query () expects at least 2 parameters, 1 given in C: \ xampp \ htdocs \ network \ profile.php on line 25       Warning: mysqli_fetch_assoc () expects parameter 1 to be mysqli_result,...
asked by 06.11.2018 / 02:45
3
answers

INSERT with prepare does not work

I'm trying to insert data into the database using mysqli prepare but are not inserting the data, and does not show any error Questions ::: What am I doing wrong in this code below? Is this the best way to do it? Could you put an exam...
asked by 27.05.2017 / 15:16
1
answer

How to enter a keyword in a search in the bank already done

For example, I did a search of all the user data in the bank to echo echoes in different columns through the site: $stmt = $conexao->prepare("SELECT * FROM esc_usuarios WHERE usu_codigo = ?"); $stmt->bind_param("s", $usu_codigo);...
asked by 23.10.2018 / 20:24
2
answers

Error "expects parameter 1 to be mysqli, string given in"

I am creating an insert form to register, but when I click the button it is presenting me an error:    Warning: mysqli_query () expects parameter 1 to be mysqli, string given in C: \ wamp64 \ www \ Project Beauty and Harmony \ Beauty and Harm...
asked by 05.01.2017 / 01:39
1
answer

Pass mysql class to mysqli error in query

I'm having a problem passing the query (this->Query($sql)) and the others to mysqli . I do not know how to proceed ERRORS:    PHP Warning: mysqli_query () expects parameter 1 to be mysqli, null   given in /var/www/html/ma...
asked by 15.10.2018 / 19:52
0
answers

Write History (Modification Log) PHP

Good evening! I would like to know how to create a history, a page where I can see everything that has been modified on a page, for example: I have a Corporate Phone Registration page, where everyone has access, so I would like to be able...
asked by 10.10.2018 / 03:40
1
answer

Multiple queries and then sort these results so that they appear in order by date

I need to do N queries according to a value received from another query. $idList = array(); if (@$_GET["page"] == "profile"){ $idList[0] = $_GET['pid']; $cont = 0; } else { $idList[0] = $uid; $cont = 1; $query = mysqli_qu...
asked by 01.10.2018 / 15:09
0
answers

Pagination PHP MySql

I have the code below, can anyone help me convert Mysqli to please. $pagina = $_GET["pagina"]; $busca = "SELECT * FROM colunistas_parceria order by -nome"; $total_reg = $config_paginacao_todos_os_colunistas; // número de registros por...
asked by 23.09.2018 / 22:33