Questions tagged as 'php'

1
answer

Question about Parse Error [closed]

I made the correction suggested by GBianchi but follows the same error:    Parse error: syntax error, unexpected 'DB_PASSWORD' (T_STRING) in /home1/pesosalu/public_html/wp-config.php on line 30 And the wp-config-php stayed that way, alrea...
asked by 21.06.2017 / 16:11
1
answer

I mark an error in my visa, it says that the variable row is not defined, this error marks me when I do not have data in the database

foreach($data['prestamos'] as $row): /*inicia inspeccionar abonos*/ $prestamos = $this->prestamosModel->getAbonosPrestamoInicio($row->pr_id_prestamo ); $suma_prestamos = 0.00; if($prestam...
asked by 10.08.2017 / 21:16
2
answers

Get results of two fields in mysql subquery

I'm trying to recover two fields from a subquery but I do not give with the key to show them to me. this is the code I have: SELECT *, art.id AS IdArt, art.nombre AS NombrArt, conf.Conf1 AS Sexo FROM 'Articulos' art INNER JOIN 'Configuraci...
asked by 22.06.2017 / 10:03
1
answer

Error uploading csv file to mysql

I have the Index and the php in a single script. I have a button that gives me the option to search the directory for the csv file to upload to the database. Before selecting the file I get the following error:    Notice: Undefined index:...
asked by 09.08.2017 / 15:13
2
answers

how to call a mysql stored procedure from php with data from a form

<!DOCTYPE html> <?php include 'MenuNav.php'; ?> <html> <head> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <meta name="viewport" content="width=device-width, initial-scale=1"&...
asked by 10.08.2017 / 01:40
1
answer

Sql query with filter depending on two values within separate tables

Good, I have the following problem I want to do as a filter with sql that shows only the rows that have for example in the column job_date the value 21/02/2017 and in the column job_state the value 1 this is my code, the two are inside the table...
asked by 09.08.2017 / 21:42
1
answer

Tables are traveling down

I was asked to create a gigantic table and for some reasons (SQL, format, etc.) I had to create a table for each column and put them together to make them look like a big table, now I have occupied the whole width of the page and my tables ar...
asked by 28.06.2017 / 16:58
2
answers

PHP / HTACCESS - Reading the URL as a string

I would like to know how I can do that by entering a URL like the following link Read the URL and you can do something specific with the word profile , user-1 , and news , for example, show a news page based on the user.    But wit...
asked by 28.07.2017 / 15:56
1
answer

Send a variable in the subject of PHP MAILER

I have a form which, when finished, sends the data to an email, and sends the data, I just want the subject to be sent from where the information is sent, I have the following code: $nombre = utf8_decode($_POST['nombre']); $plantel = utf8_dec...
asked by 13.06.2017 / 17:56
1
answer

Where does the code of the config method ('auth.default.domain') come from in LARAVEL?

I have a question since I installed laravel 5.4 and the template adminLTE 3.0, in which after everything was working I put it in Spanish, everything normal up there, then I wanted to change the html code of the login, but I found that the code i...
asked by 13.06.2017 / 22:19