Questions tagged as 'mysqli'

0
answers

Register mysqli in php

Hello friends, I have a question. I have a table with data that matches and data that does not. I want to know if I can record a comment for those who owe and save the data in another table called debt. and that pressing a button (validated) wil...
asked by 11.04.2018 / 20:57
0
answers

Because after sending variables by ajax and recovering by php, they will fly indefinitely.

I have two select and a text box, by means of which I send values to query.php the selected values of the select are the most important for me because it depends on which user selects that values will be passed to some queries with which their v...
asked by 13.03.2018 / 23:26
1
answer

Get variables from a row and put them in php variables

When obtaining the value of the row that the user is located, I want it to store in the variable $ _SESSION the other fields that have been set, like the email. Here the code: <?php $usuario = $_POST['username']; $clave = $_POST['passwo...
asked by 18.03.2018 / 22:08
1
answer

Do not insert all the values selected by checkbox

<?php require 'connect_db.php'; $turno = $_POST['idctg_turno']; $entrada = $_POST['hr_entrada']; $salida = $_POST['hr_salida']; $dia = isset($_POST['idctg_dia']) ? $_POST['idctg_dia'] : null; $arraydia = null; $...
asked by 22.02.2018 / 08:57
1
answer

Ubuntu server error when inserting long string in mysql

Hi, I am using a new installation of ubuntu server 16.04.3 LTS, I have problems when inserting a string in mysql, I think it needs configuration and I have it by default. The fact is that when I send a string for $ _POST of more than 164 char...
asked by 29.01.2018 / 19:32
1
answer

syntax error [closed]

What happens is that I'm trying to insert the data sent by php but I get syntax error:    on Tutela Poso no no 2018-02-14 112345 Clinical Society Emcosalud is still trying 98765432 Citizenship Card or problems in the selectYou have an error i...
asked by 02.02.2018 / 16:25
1
answer

Update that does not modify the table

NEW CODE VERY COMMENTED to explain where it works and where it does not! <?php session_start(); ob_start(); // Include config file require_once '990conn.php'; ?> <!doctype html> <html> <head> <meta char...
asked by 29.10.2017 / 22:49
1
answer

Insert a record if it EXISTS otherwise UPDATE it MYSQL

Good friends I hope you can help me, I have the following table CREATE TABLE 'almacen_articulo' ( 'id' INT(4) NOT NULL AUTO_INCREMENT, 'existencia' VARCHAR(5) NOT NULL DEFAULT '0', 'id_articulo' VARCHAR(4) NOT NULL DEFAULT '0', 'id_almacen'...
asked by 06.10.2017 / 05:33
1
answer

Variable undefined PHP and Mysqli

[![introducir la descripción de la imagen aquí][1]][1]<?php session_start(); $conexion = mysqli_connect("localhost","root","", "trigoyponque2017"); /* $ruta = $_FILES['foto1']['tmp_name']; $destino = "../productos/".$_FILES['foto1']['name...
asked by 05.10.2017 / 23:37
1
answer

Problem with While in Mysql Query

Good friends I hope you can help me, I am saving data provided by the user in 2 different tables, when saving the second data I get this message Fatal error: Maximum execution time of 30 seconds exceeded Query to Verify Existence in th...
asked by 01.10.2017 / 03:47