Questions tagged as 'php'

1
answer

Insert data from an array to mysql with php

I have two tables related to the principal and the detail. I have to register for example: Tabla 1 Idpersona persona 01 Juan Tabla 2 ID idpersona pedido 1 01 zcahs 2 01 bitcoin 3 01 Eterium To insert...
asked by 25.02.2018 / 13:33
1
answer

Error trying to connect Yii2 with SQLite

I am trying to connect my application in Yii2 with a SQLite database but every time I try to access my application I get the following error: The configuration for the "db" component must contain a "class" element. This is how I have my datab...
asked by 24.02.2018 / 04:15
1
answer

Joomla, my page is downloaded

My page is downloaded when you enter the domain and I do not know what this error is. When I add this to the htacces the page is not downloaded but error 500 AddHandler application/x-httpd-php56 .php .php5 .php4 .php3 to test the page l...
asked by 23.02.2018 / 20:04
1
answer

There is no validation in the files that I upload in Laravel

In the creation validation of a post-use entry this request: <?php namespace App\Http\Requests; use Illuminate\Foundation\Http\FormRequest; class PostStoreRequest extends FormRequest { /** * Determine if the user is authorized to make t...
asked by 25.02.2018 / 02:57
1
answer

Do not insert all my records (type Time) in PHP AND MYSQL

I make a form which is a schedule for workers, which contains shifts, time of entry, time of departure and day for the assignment. The problem I have is that I insert the shift and the day in my BD but the time of entry and exit in my BD...
asked by 23.02.2018 / 04:51
1
answer

How can you get the number of matches in a mysql query with left join?

I have in a database a table where the logins of each user are registered, and another where I store the modifications that the same user makes in the system. If the user does not make any changes to the system, nothing will be saved in the tab...
asked by 23.02.2018 / 18:45
2
answers

Problem with LAST_INSERT_ID

I am trying to get the next number in a column called TARIMA , the problem is that% is not% co_ since it is apart from autoincremento general ID , try to use AI to get the next lastinsertid of the table but it do...
asked by 23.02.2018 / 09:13
3
answers

Pass array obtained from fetch (PDO :: FETCH_ASSOC) to javascript

I'm trying to make a table and I'm having problems with the edit button. I want to click on this button to load the data that is in the table to the form from the BD. So for this I want to send the string I get from the database with fetch to a...
asked by 23.02.2018 / 02:50
3
answers

Error: SQLSTATE [28000] [1045] Access denied for user 'digital_chuser' @ 'localhost' (using password: YES)

I have the following problem, I am trying to connect to the database with pdo in HostGator but I receive the following error:    Error: SQLSTATE [28000] [1045] Access denied for user   'digital_chuser' @ 'localhost' (using password: YES)...
asked by 08.03.2018 / 17:41
3
answers

Send the specific value in inputs generated with a FOR

I have this problem I am generating a list of inputs with the same name but different value. <?php if(isset($_POST['SubmitButton'])){ //check if form was submitted $input = $_POST['inputText']; //get input text $message...
asked by 08.03.2018 / 16:54