Questions tagged as 'mysqli'

1
answer

Is it possible to 'hash' to $ x-variable?

Hi, I would like to know if it is possible to do the following: $id_user = $_POST['id_user']; $nivel_auth = $_POST['nivel']; $hash_nivel = hash($nivel_auth); $con = "INSERT INTO usuario (nivel) VALUES ($hash_nivel) WHERE id_user=$id_user;...
asked by 29.01.2018 / 19:37
1
answer

Error updating database

I have the following problem: I am trying to send data from a form and the problem arises when I make a decision and try to update Code: <?php include "plantillas/conexion.php"; $clave = $_POST["clave"]; $centro = $_POST["cen...
asked by 31.01.2018 / 21:56
1
answer

Display data from B.D. in an HTML select

Good people, well here's my problem, I have a page in php with the html view, we go a page of all life, which is accessed after a login, I've verified that after login the important data , that is, the ID and the User's Name are passed correctly...
asked by 22.01.2018 / 17:18
1
answer

Group results mysqli

I'm trying to group results from a table so that I can add all the quantities of the same model, but I do not quite understand how it works. I will try to explain what I need to see if I am able: I have 2 tables that are called orders and oth...
asked by 12.11.2017 / 13:34
1
answer

The combobox does not send the selected code

Good evening I know they did not miss me, but I'm still stuck like a truck in the sand. Accomplishments this week: I've already 'awakened' and I can pass not only one but my three variables. I already prepared all the 'pretty' query as Cedano...
asked by 08.11.2017 / 00:55
1
answer

Warning: mysqli_num_rows () expects parameter 1 to be mysqli_result, boolean given

The function performs well the registration but does not respect the if and shows:    Warning: mysqli_num_rows () expects parameter 1 to be mysqli_result, boolean given in C: \ xampp \ htdocs \ projectphp \ model \ teacher.php on line 30 p...
asked by 04.01.2018 / 01:42
1
answer

Error query from php, function bind_param ()

I need help with this: <?php error_reporting(E_ALL); ini_set('display_errors', '1'); include_once 'includes/funciones/funciones.php'; session_start(); usuario_autenticado(); if(isset($_POST['submit'])) { $nombre = $_P...
asked by 28.10.2017 / 17:10
1
answer

error when performing login function with php

I have a code in php which I want to consume in android, the problem that I currently have is that when I try the code, I have problems with this, the error that I have is when executing the query with the varible " $ result "of the authenticate...
asked by 12.12.2017 / 07:25
1
answer

How to add an insert to save the name of the images in my mysql database

I would like to obtain the name of each one of the images uploaded to the web server and save them in my database for later reference.  to see if someone gives me a hand. Thanks for your help Here I leave the script that I use to upload th...
asked by 14.10.2017 / 06:45
2
answers

mysqli_fetch_row () expects parameter 1 to be mysqli_result, boolean given in [duplicate]

I can not find the error in my code, this error is in mysqli_fetch_row . below my code <?php $db_host="localhost"; $db_user="root"; $db_password=""; $db_name="proyectoicel"; $db_connection = mysqli_connect($db_host, $db_user, $db_...
asked by 23.12.2017 / 08:37