Questions tagged as 'php'

1
answer

move_uploaded_file does not upload the selected files [closed]

Good morning classmates, I have problems when uploading files, I'm doing tests in local, the data is sent to the bbdd, I generate the destination path, but at the time of executing the function move_uploaded_file does not upload them, and does n...
asked by 06.07.2018 / 17:47
1
answer

How to make a purchase matrix in DQL or MYSQL

I would like to create a matrix with two tables in sql in the following way: I have a table that contains the data: id | name 00 | Form 0 01 | Form 1 02 | Form 2 03 | Form 3 04 | Form 4 another table: id | name 00 | person...
asked by 09.07.2018 / 07:52
1
answer

Get form variables when submit and pass them to a php

I would like to know how to get the input values of a form. I show the current values extracted from the database by means of an echo and the intention is to be able to change them. The code (editproyectos.php) would be:      <table class...
asked by 06.07.2018 / 15:21
2
answers

PHP Ternary conditions

I was wondering if there was any way to perform a ternary codicional that only evaluates a true condition and not a false one. For example, the ternary conditional in php would be: $n = (2) ? true : false; My idea would be to make a tern...
asked by 09.07.2018 / 15:15
3
answers

problesmas with mysqli_num_rows and mysqli prepared queries

Good afternoon community stack , I'm doing some queries prepared with mysqli the query is successful but if agrgo mysqli_num_rows throws me error. example this is the code that throws me wrong ... $me=$_SESSION["id"]; $name=$_SES...
asked by 24.08.2018 / 22:43
1
answer

Php - multiple "select" queries using prepared statement

The following code has the function of receiving multiple page ids, executing a procedure to obtain your data and returning an array with all this information. The function works fine but only when it is 1 iteration, is there something that i...
asked by 24.08.2018 / 00:57
2
answers

Email to external domains

I need help to send an email with an html design in php mailer , the fact is that I send my recipient email to an external server (not to gmail, or to hotmail, etc.), when sending it , all the html document is outdated and does not arrive as it...
asked by 12.07.2018 / 00:15
1
answer

Can an INNER JOIN be done with a WHERE?

I get an error, it's a sure formulation error, but I can not find it SELECT * FROM comentariosforo WHERE ID_Post = '$IDPost' INNER JOIN usuarios ON usuarios.ID = comentariosforo.ID_Persona     
asked by 17.06.2018 / 14:39
1
answer

how to insert data in php array, mysqli?

I need to insert multiple records in a mysql table, from another table, but only the first record in the table is inserted my code is as follows if (!$conn) { die("Connection failed: " . mysqli_connect_error()); } echo "Conectado a la ba...
asked by 11.06.2018 / 22:39
1
answer

Notice: Undefined variable: password in C: \ xampp \ htdocs \ iedan \ model \ UserDao.php on line 37

I have this error:    Notice: Undefined variable: password in C: \ xampp \ htdocs \ iedan \ model \ UserDao.php on line 37 here is the code <?php include 'Conexion.php'; include '../entidades/Usuario.php'; class UsuarioDao extend...
asked by 20.06.2018 / 01:51