Questions tagged as 'php'

2
answers

mysqli_fetch_row () expects parameter 1 to be mysqli_result, boolean given in [duplicate]

I can not find the error in my code, this error is in mysqli_fetch_row . below my code <?php $db_host="localhost"; $db_user="root"; $db_password=""; $db_name="proyectoicel"; $db_connection = mysqli_connect($db_host, $db_user, $db_...
asked by 23.12.2017 / 07:37
1
answer

Save ID in related table from the main table

I have three tables in my database: At first, I only had the contratos table and recently I needed to add the other two tables, as you will see, there is a field in pagos which is related contratos by fk ....
asked by 25.12.2017 / 22:17
1
answer

Get the Following using TwitterAPIExchange.php

I'm looking for a way to get the Following using the library    TwitterAPIExchange. php I have managed to send tweets using this library in this way: require_once 'libs/twitteroauth.php'; /** Set access tokens here - se...
asked by 24.09.2017 / 00:41
1
answer

Create input showing if it is right or wrong

My current project consists of a section in which through a javascript (preferably), you have to write a word in an input. Then, you could know if it is the correct word or it is not, then it would be incorrect. I have been thinking about all...
asked by 24.09.2017 / 19:36
1
answer

I'm duplicated a select but when I bring a data from the BD

I have a form where among other things I have a multiple select where the types of jobs that the user does are selected. When you sign up, choose these items in a select and record them in the BD with the format of ["1", "2", "4"] with those nu...
asked by 29.09.2017 / 19:14
1
answer

Go through and save data from an array with laravel 5.1?

I have the following case, I am sending from the view to the controller some data in the following way: <div id="modalities_1"> <div class="col-md-12"> <h3>Modalidad</h3> </div> <div class...
asked by 29.09.2017 / 14:34
2
answers

Touring a POO query

I'm creating my own Framework basic and I just need to go through a%%% query and I've been paused in the SELECT and confirm that the query arrives with its% function get_query parameter but when walking the WHILE is where I mark the...
asked by 03.09.2017 / 22:53
1
answer

Problem with the StartDate in date period PHP (DatePeriod)

I am trying to perform a function that selects only the days of a certain range of dates that coincide with the condition of a period of time (for example: the first Friday of each month, the last Friday of each month, all the Friday, etc ...),...
asked by 03.09.2017 / 18:53
1
answer

Error Validating Stock when updating a sale

I have a small bug with a Sales system, for which I show and explain first the two functions where I have the problem, the following function is executed when you add details to the sale: //*** Declaración de Variables necesarias para tr...
asked by 02.09.2017 / 23:16
1
answer

Compound primary key: Illegal offset type error in laravel 5

I am new to Laravel and I do not know how to solve this problem, which is as follows: I have a table like that on MySql: Table: propiedad_x_tipo Columns: **id_tipo_propiedad** int(11) **PK** **id_propiedad** int(11) **PK** As you can se...
asked by 21.09.2017 / 23:41