Questions tagged as 'mysql'

1
answer

fill in required fields?

I have to evaluate some exams using 2 techniques but not in a parallel way, with that I mean that each technique has its own parameters then it should exist sometimes the parameters 1 ... 5 or parameters 6 ... 8 but it is advisable to store only...
asked by 03.09.2018 / 09:37
1
answer

SQL query to get fields in Java

What exactly would an SQL query be according to the following method? The problem is that with the three tables I can not get it out correctly. The only thing that would have to be modified would be the consultation. -show OrderData (int...
asked by 04.09.2018 / 23:07
1
answer

Show only the current user profile image with PHP

Good morning. Someone will know by chance how I can show only the current profile image with PHP Currently I have this like this: $path = "files/".$id; if(file_exists($path)){ $directorio = opendir($path); while ($archivo = readd...
asked by 04.09.2018 / 23:12
2
answers

Response of an echo in a div ID

Good I'm doing a login and I would need the echo that responds to me that does not exist that user or password show me in a div inside the form instead of an echo. resupuesta.php <?php require('conexion/conexion.php');...
asked by 05.09.2018 / 07:16
1
answer

Replace values of one table in relation to another?

Good afternoon group my query is the following I have these tables In the table books is the field lib_autor this field has a lot of records 3689 to be exact each one with its respective author (but these are repeated) and what I want is t...
asked by 09.09.2018 / 01:22
1
answer

how to join two tables in another table [duplicated]

My problem is that I have two table input and output is related to another table inventory , I want it to show the products of the entries in my table inventory and output in my inventory table this is my query select idinventario,i.ide...
asked by 29.08.2018 / 22:50
1
answer

Doubt with consultation and foreach

I am trying to understand why a foreach is done in this example: I have a function like: function obtenerNombreProyecto($id = null){ include 'conexion.php'; try{ return $conn->query("SELECT nombre FROM proyectos WHERE id = {...
asked by 12.08.2018 / 21:48
1
answer

How to send the data of a form to GMAIL with PHP

I need to know how I can send the values that the user completes in a contact form, via PHP to an email     
asked by 29.08.2018 / 18:32
1
answer

Login with user or with Email with PHP

my query is to know if the following function can be implemented so that the user can log in using both the user and the email the function that I have is the following: function login(){ global $db, $username, $errors; // gra...
asked by 23.08.2018 / 02:45
1
answer

I need help with a sql that I'm doing in php

to show me the students who are enrolled in each course, by means of a table called registers, which contains the course id and also the user id, but I do not know if I have to call the data by variables of session? they help me <meta...
asked by 08.08.2018 / 16:35