Questions tagged as 'mysqli'

1
answer

Error inserting records with MySQLi with prepared statements

I published a question yesterday, but another very similar problem arose, I already verified the connection to my database (it is correct), I already did "SELECT" of all my table and answered correctly, and update records and if you update them...
asked by 02.08.2018 / 02:06
2
answers

How to show all the contents of a Mysql table in PHP?

I want to make people with the reader role, only see the contents of their rows, but the administrator sees everything, I'm using this code but I do not understand why it does not work. I do not see where the error is here in the logic, because...
asked by 30.08.2018 / 16:14
1
answer

Myslqi query of two tables with sum of records

Good to have if I can explain everything; I have two tables in the BD: productos +----+----------+--------+ | id | producto | estado | +----+----------+--------+ | | | | | | | | +----+----------+...
asked by 20.08.2018 / 09:08
1
answer

What do I do so that in a stored procedure I can save in two variables with INTO in front of a query that returns one or several columns?

I explain: It turns out that I have a procedure that establishes two integer parameters, which are then arranged to store each the result of a single value that comes from different columns one for each, the select that I have is some...
asked by 17.08.2018 / 21:11
1
answer

# 1241 - Operand should contain 1 column (s)

I have 2 tables one with the general data of Routes and another of Inscriptions of each partner, I want to update the table Routes with the sum of two fields of the table of Registrations and I get the error:    # 1241 - Operand should contai...
asked by 15.06.2018 / 01:40
1
answer

Error in MYSQL and PHP query

Good afternoon. I do not know why this query is not done in PHP and Mysql This is the code of the form to send the content: <?php session_start(); if(!isset($_SESSION['usuario'])) { header('Location:auth'); exit(); } include 'conexion.ph...
asked by 15.11.2017 / 21:45
1
answer

Array to string conversion. Modify mysql data with php

I have the following code that generates a table in php, returning the data saved in a database in mysql require("conexion.php"); $consulta = mysqli_query($conexion, "SELECT * FROM clientes"); if (!$consulta) { die("Fallo al realizar la...
asked by 19.05.2017 / 21:29
1
answer

Loop syntax when it has no results

I have a loop that runs through an array that comes from a multiple select and stores the results in mysql. The fact is that there is the option that this select does not exist, so the loop does not make sense. I have tried to enter a conditi...
asked by 30.01.2018 / 22:49
1
answer

Because blank spaces are generated in my input value

<input type="text" class="form-control txt_respuesta54_act" name="txt_respuesta54_act" required value=" <?php if ($trim == 1){echo trim($respuesta_Trans_Q2);} elseif ($trim == 2){echo $respuesta_Trans_Q3;} elseif ($trim == 3...
asked by 30.01.2018 / 23:22
1
answer

How to count record, with multiple conditions

I am trying to make a query in MySQL, I have a table that contains the following: table: id, ano, m1, m2, m3, m4, m5, m6, m7 data: 10, 2016, I, P, L, I, L, P, I That is, what I want to achieve is...
asked by 19.08.2016 / 15:19