Questions tagged as 'php'

1
answer

I have a form and the button is not generating any action I leave the code with which I am executing

<div align="center"> <input align="center" name="EnviarInfo" class="btn btn-primary btn-block" type="submit" style="width: 50%" action='EnviarInfo' value="Asignar"> </div> </form></center>...
asked by 21.09.2018 / 18:22
1
answer

Save result of Array in Mysql

with help I have used the following code that allows me to enter data from an input and that it be separated into 3 different values that I need, which are value, code and serial <?php $datos = "3,5 1401 4145 7854 8454 7458 5152556555 5 140...
asked by 21.09.2018 / 12:18
2
answers

How to send variables from one PHP to another and retrieve them to use them?

I have a form in which I print variables through a query to my database, I want to send these variables to another php file to be able to use them, I am currently doing it with a form and sent them with the POST method and a submit button , but...
asked by 21.09.2018 / 18:48
1
answer

Problem to save record with PHP

I must keep a numeric record (units that come in a box) but it is not saving me I do the following. if(isset($_POST['act'])) { if($_POST['act'] == '1') { if(!isset($_POST['name']) || !isset($_POST['descrp']) || !isset($_POST['cat']...
asked by 11.09.2018 / 14:36
1
answer

Error in CRUD form: Warning: mysqli_error () expects exactly 1 parameter, 0 given in

I have a problem with the error that is indicated in the statement of my question. The connection file, called conexion_2.php , has the following content: <?php /*Datos de conexion a la base de datos*/ $db_host = "localhost"; $db_us...
asked by 12.09.2018 / 12:49
3
answers

Display data in a row of a table if 2 data match

I have a record of entry and exit of each worker (each one has an ID) where each of them only enters their user code and records their schedules, but it happens that sometimes they are forgotten. How can I display the data in the same row of a t...
asked by 20.09.2018 / 18:35
2
answers

How can I format a String to date with PHP

Greetings as they are all I have this date with this format, it is a string Wed Sep 12 2018 14:47:35 GMT-0500 (Colombian standard time) and I want to cover it in this format 2018-09 -12 14:47:35 Someone knows how I can solve my problem....
asked by 12.09.2018 / 20:19
1
answer

How to insert the sum of PHP MYSQL variables

I have a problem with a code that allows you to insert multiple data from php, and what I need is that for each record the amount of the entered values is inserted in the DB. Code: //insert.php $connect = mysqli_connect("localhost", "root",...
asked by 03.09.2018 / 07:00
1
answer

Problems with header () in an iteration to check the login

Hello Friends here again; Today I come with a small "big problem" and that is that the header () function; It is crushing me and I'm not sure why. I explain. I have a file called validate_login.php that serves as a program to validate the...
asked by 02.09.2018 / 18:00
1
answer

Problems when consulting the database with a Laravel drop-down list

I have a question. I have a forms with two fields one is a input and the other is a select when doing the search of the two fields does not bring me anything. Here I put my query: $titulo = $request->get(‘titulo’); $provincia...
asked by 18.09.2018 / 18:07