Questions tagged as 'php'

1
answer

No message in form

I have a User table, which among its variables has a call balance, which is of integer type and is to indicate how much money a user has. I want to make a form which the user writes a number. If the user's balance is zero (or equal to 0), this n...
asked by 17.02.2018 / 12:26
1
answer

how to capture name and value of a select without javascript

<label for="">Codigo Motivo</label> <select required name="cmotivo" class="form-control" id="cmotivo"> <option value="01" selected>Anulacion</option>...
asked by 13.02.2018 / 17:05
2
answers

How can I know if the table exists

The problem is that I do not know how I can check that logeo. I currently do a query directly to a table, when there is perfect nothing happens, it shows me the information. when it does not exist it throws me the following error: Unexpected '...
asked by 12.02.2018 / 23:12
2
answers

Migrate wordpress to a directory

I am trying to place a wordpress installation to a folder, instead of having it in the root of the domain. I make the migration without problem from mydomain.com to mydomain.com/folder The problem I have to point the domain to the folder for the...
asked by 13.02.2018 / 16:03
1
answer

Error in foreach Invalid argument supplied for foreach ()

I'm going through an array of data with a foreach, but at the time of crossing it I release this Invalid argument supplied for foreach () and it tells me that the variables are undefined. This is my code: <?php include 'Models.php'; clas...
asked by 12.02.2018 / 19:07
2
answers

Help in laravel excel

I would like to know how I can place dates to the names of the excel documents in laravel to be able to know on which day the file was exported I would appreciate your collaboration     
asked by 12.02.2018 / 19:33
2
answers

Insert a record in two related tables

I'm doing a project where I want to insert a record into two tables, where the user table has a primary key , and I have a client table > where there is a foreign key related to the primary key of the first one. What I have tried to...
asked by 13.02.2018 / 20:41
1
answer

Empty list after having filled in javascript [duplicated]

Hi, I have the following function in Javascript that is executed when the document loads, I am trying to fill the array lista but every time I want to show it with a console.log or an alert (except the console.log inside the foreach, th...
asked by 14.02.2018 / 16:41
3
answers

concatenation with php

The problem is the following attempt to concatenate within an echo the code is the following while ($columna = mysqli_fetch_array( $resultado )) $dir ="assets/img/"; { echo "<article class='124'>"; echo "<a href="">";...
asked by 13.02.2018 / 19:43
1
answer

Filter the values of a table according to foreign variables

You see, I have 3 tables: the plants, the users and the comments. The comment table has foreign keys that point to a specific plant and user. With that in mind, create a view which shows the comments by filtering them according to what plant...
asked by 12.02.2018 / 12:13