Questions tagged as 'mysqli'

1
answer

How to make a select with mysql and php from a modal?

I have a modal that opens from a button which comes with the id of the post. This id stores it in an input type "hidden", in the modal. My problem is having this field already loaded with the selected post id How can I filter data from a data...
asked by 20.11.2016 / 17:01
2
answers

Error consulting text with emojis in mysql

Update ... I have the following table: CREATE TABLE 'chrislat_cms'.'opciones' ( 'id' INT(11) NOT NULL AUTO_INCREMENT , 'nombreOpcion' VARCHAR(250) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL , 'valorOpcion' LONGTEXT CHARACTER SE...
asked by 29.05.2018 / 06:22
1
answer

UPDATE does not execute anything in PHP

On the page when the user gives you to save changes in the form: echo"<form id='contact' action='actualizar.php' method='post' name='actualizar'>"; echo "<fieldset>"; echo " Nombre:<span class='obligatorio'>...
asked by 23.04.2018 / 21:36
1
answer

Error # 1241 MySQL subquery

How to create two subqueries in MySQL ? effectively and optimized. The current code throws me the error #1241 - Operando debe tener 1 columna(s) from the phpMyAdmin . The first subquery calculates the total number of availab...
asked by 16.01.2018 / 23:50
1
answer

Error fetch_assoc () on boolean

I need to be able to modify a record using a table, but it happens that when I want to execute the action of the button, it sends me an error. I had previously done a test with a table of 15 records or so and it did work, but when I tried to...
asked by 08.02.2018 / 06:33
2
answers

Error when entering the access system, the session is lost and data is recorded failed when entered correctly?

When the user enters correctly with the access data to the system, it registers in the database failed attempts in the following tables.    failed_attempt This table posts every failed attempt as a registered or unregistered user, all faile...
asked by 26.09.2017 / 06:41
1
answer

Help with PHPMailerAutoload.php

I am trying to send an email using the php library that is PHPMailerAutoload.php The reason I use this library is to retrieve a user's password. NOTE: I am using gmail. I have the code configured this way: //Método getValor function getValor($...
asked by 05.09.2017 / 00:12
1
answer

Temporary table in MYSQL and its use in PHP

I'm doing this code: <?php $tempSQL = "CREATE TEMPORARY TABLE IF NOT EXISTS tempUsers SELECT CONCAT(NOMBRE,' 'AP_PATERNO,' ',AP_MATERNO) AS NOMBRE, EMP_ID, AREA FROM EMPLEADOS WHERE ESTADO = 1"; mysqli_query($conn,$tempSQL); if(mysqli_affe...
asked by 23.06.2017 / 02:26
1
answer

mysqli_fetch_assoc in object-oriented style

I'm getting values from an associative array $datos = ""; $array = array(1, 2, 3, 4); foreach ($array as $valor => $dato) { $datos = $datos . $dato . ","; } $app = rtrim($datos, ","); echo $app; Result: 1,2,3,4...
asked by 26.11.2017 / 22:37
1
answer

Incorrect Data to Get COUNT value of a query with rowCount PDO - PHP

I'm doing a query on the model of a web application in PHP with MVC . The idea is to make a query in which to put the value in empresa_id I see the total rows with that company, for this I used COUNT() in the query...
asked by 06.04.2018 / 18:23