Questions tagged as 'mysqli'

1
answer

Querys have stopped working

Recently I made a change in the table and after that SELECT and INSERT INTO stopped working. At first INSERT INTO could not include data in the last column that includes (centid), it returned column 'centid' cannot be...
asked by 21.02.2017 / 21:13
1
answer

Error connecting to MySQL: Headers and client library minor version mismatch

When connecting to MYSQL database using the mysqli class I am getting the error: Warning: mysqli :: mysqli (): Headers and client library minor version mismatch . The error occurs when using version 5.4.16 of PHP, in version 5.6 the error no...
asked by 09.01.2017 / 19:27
3
answers

Exchange PostgreSQL connection for MySQL connection

I found a project made in PHP OO to be used in PostgreSQL with this connection file. <?php class BD { public function __construct() { pg_connect("host=localhost port=5432 user=usuario password=senha dbname=nome_do_BD...
asked by 06.09.2015 / 14:33
1
answer

How to fetch values from just the selected checkboxes in codeigniter

I have dynamic checkboxes, and wanted to fetch the values from those that were selected, like doing this with codigniter: Model to go the fields and create the necessary checkboxes: public function apoioPertendido(){ $query = $thi...
asked by 05.06.2015 / 18:28
2
answers

Doubt MySQLi Paramento new_link

The old PHP function mysql_connect had the new_link parameter that allowed connection to several different banks in the same script : Example: $connect = mysql_connect($host,$user,$pass,$new_link); How does this work...
asked by 15.07.2015 / 17:13
1
answer

query error in mysqli

Person, as I tidy this my code, it is giving error: <?php //IMPRIME TODOS OS VALORES DO BANCO CADASTRO $servidor = "localhost"; $usuario = "root"; $senha = "admin"; $banco = "cadastro"; //conecta-se ao banco de dados Mysql $con = n...
asked by 02.08.2014 / 23:42
0
answers

Problem fetching the most recent result of a group in a query in two tables with PHP and MySQLi

I am studying mysqli and PHP to migrate a personal blog, from PHP 5.6 to 7 (mysql to mysqli), the blog has a table with names and another with items related to names, dates and times, write a similar example. Before, I made a query in table 1...
asked by 15.09.2018 / 22:26
4
answers

MySQLi vs PDO - Which is the most recommended to use?

With mysql_* entering the deprecated state, the PHP documentation recommends using the PDO and MySQLi. Which do you recommend for use? PDO seems to be more suitable for working with object-oriented only than at the same time I saw...
asked by 06.03.2014 / 18:10
1
answer

Datatable slow loading many results

I have a database with about 500 records with system requests, but I need to display those records in the DataTable for better organization and search. When loading the page it takes a long time to display the data in the DataTable. PHP:...
asked by 07.06.2018 / 15:16
2
answers

While not loading records

I'm trying to repeat a region however, although mysqli_num_rows indicates that it has 9 records, in the while nothing is coming. My code looks like this: $qry = "SELECT pe_orclinhas.id_orclinha, pe_orcgrupos.grupo_orc...
asked by 20.04.2018 / 15:07