Questions tagged as 'mysqli'

2
answers

upload an image in PHP and save the result in database

I tried to upload a profile picture using this code in php and it saves it in the path that I specify but it does not save anything in the database. I am working with wampserver and phpmyadmin . The code I have is the foll...
asked by 20.06.2017 / 17:01
4
answers

How to set a statement so that it does not return NULL values having two conditions in PHP?

I have the following code to consult the database: <?php include_once '__conexion.php'; require "funciones/JSON.php"; ?> <?php $cedula = 111111; //No existe $estado=1; //-- Obtener Ultimo ID de sancion registrado para ese sanc...
asked by 04.05.2017 / 17:14
1
answer

What name does this bear? and can you add content to a database? [closed]

What name does this have and how do I add it to a website for mysql? Is that I want to create as well as in the forums a Web text this may or may not include images and link but I do not know where to get the source codes, this could se...
asked by 10.01.2017 / 12:10
3
answers

Obtain selected values of the checkbox array, and of the arrangement of inputs through loops. To execute a query with the obtained values

In this code I try to get values of checkbox selected, within a loop, and in another nested loop you get values of inputs fixed. With these iterated values obtained within the loops, I wanted to execute a delete , setting as...
asked by 02.01.2017 / 08:53
2
answers

Print Joins data

Perform the following sql, which has an inner and a left to look up the overhead and individual user data. They are in different tables when doing the sql queries but I do not group the result to show it in the same td, resulting in this...
asked by 30.11.2018 / 06:49
1
answer

PHP / MySQLI Syntax Error

What happens? I think it's well built, but obviously something is missing. Name of the Table: citas Field Name: idcita, horacita, diacita, asuntocita    Query Error 1064 You have an error in your SQL syntax; check the   ma...
asked by 14.11.2018 / 15:17
5
answers

Change an int type value to one string type PHP

I make a query to the DB and I get the value "month" of the records of the table that is an integer type. I want that according to the month received, PHP will print it in its string form. e.g. (month = 1 then print it as month="January")....
asked by 02.03.2017 / 16:44
2
answers

Create mysqli database from php

I'm trying to create a database from php but I can not. The server I use is a must 8 with plesk and this is the code with which I am trying: <?php $servername = "localhost"; $username = "DB_Admin"; $password = "$4Fd3rnke"; // Cre...
asked by 24.10.2018 / 19:11
1
answer

how to get the value from ajax to php?

$(document).ready(function(){ $('#estados_visa').on('change', function(){ var distritos= $('#estados_visa').val(); console.log(distritos) $.ajax({ type:'POST', url: 'cargar_distritos.php',...
asked by 24.10.2018 / 23:31
1
answer

I need to know how to compare two records in php with mysqli

The code is as follows, it is for a university project, I am making a cup model and I am inserting matches and I need to validate that the two selections are from the same group, here the code but does not work <?php require_once 'conexi...
asked by 01.09.2018 / 04:12