Questions tagged as 'mysqli'

2
answers

Long Polling with mysqli does not return data

The data from the database's .php file does not return, if I change the whole data.php to any html text it returns working the long polling , but if I try to use mysqli it does not return anything. What can I do to correct this problem?...
asked by 09.01.2015 / 00:29
1
answer

Problem with connection to DB with codeigniter (mysqli) [duplicate]

Well, I've done a registration form for newsletter. And while loading the database in autoload['libraries'] , it displays an error    Call to undefined function mysqli_init () in /home/softlove/public_html/system/database/drivers/mysq...
asked by 07.07.2016 / 13:15
1
answer

Select last JOIN record

I have a table tb_processos and another tb_detalhes (it keeps details of a certain process), I would like to get all the process data and only the last detail of the process. The way I'm doing I search for all records of tb_d...
asked by 16.03.2016 / 13:21
1
answer

PHP function select 2 values

Good! I am creating functions in PHP with the aim of returning the difference between the date TIMESTAMP of the database and today's date, and for this I have created two functions: function getRegistos() { $query = "SELECT *, DA...
asked by 26.01.2016 / 13:21
1
answer

PHP ERROR - Prepared queries [closed]

Good morning everyone, I'm starting in PHP, I follow a course through youtube. I'm studying prepared consultations. I have a form that does a query in the DB, however, when entering the data, the following error message appears:    Warning: m...
asked by 20.06.2016 / 14:36
1
answer

Array grouping hierarchically PHP / MySQL

I have the following structure in a table in the database. My intention is that when I make a select * from on it I can interact with the values so that I have an array in the hierarchical style. That is, whenever there is an idFather, th...
asked by 06.06.2018 / 12:20
2
answers

Simple log editing with PHP + MySQL

Basically the three scripts should edit a record in the Database: records.php: <?php // Aqui você se conecta ao banco $mysqli = new mysqli('127.0.0.1', 'root', '', 'login'); // Executa uma consulta $sql = "SELECT 'user_i...
asked by 26.02.2015 / 20:40
2
answers

Save Characteristics in DB [closed]

I'm starting to work with PHP, MYSQL now and I've had a question. I am developing a classified website, the same will have categories of vehicles, real estate, electronics, etc ... My question is as follows, the guy selects car for example...
asked by 03.03.2015 / 01:46
3
answers

Structure table day and time (calendar type)

I need to create a table that contains days and times of operation of an establishment, a sort of agenda. This table should represent every day of the week and each day contain the opening and closing times. The challenge is to create this table...
asked by 07.11.2016 / 15:37
1
answer

Run ECHO without interpreting HTML

I have a value in the mysql database that contains some html commands like:    <b>Olá</b>       <br>       Other ... I need to display the value using <?php echo $row_rs['original']; ?> to ap...
asked by 18.11.2015 / 18:47