Questions tagged as 'php'

1
answer

Assign multiple events to several buttons

I am creating a grid that allows to select x number of buttons with numbers, and when the user clicks on the button it shows the number that it represents, I show the code. $(document).ready(()=>{ $('#item1').click(()=>{//Quisier...
asked by 12.01.2018 / 15:42
1
answer

Incremental variables to add

The thing is that I need the variable% co_of% which is where the total price of each product line is stored, something like $precioinicial , $precioinicial1 , for later where I put the total without VAT , make the sum of these varia...
asked by 31.12.2017 / 16:20
1
answer

Laravel: Blade directive does not work

Perhaps there is a better way to do the following but I would like a bit of rectoring to know what is wrong. I am trying to create a blade directive which can format weights or dollars, I mean that if we give an amount like 35000 this directive...
asked by 12.01.2018 / 16:57
1
answer

Prepared inquiry and Array

I've done a CRUD of people with queries prepared in PDO that worked and now they have sent me to do it in a way that I do not understand, which is passing the values to use in array in execute() . For example, to crea...
asked by 13.01.2018 / 18:25
1
answer

How can I do that when it is detected? view = panel is added & hello = quetal & var = ko

Hello as the question says I would like to add & hello = quetal in the search engine. here the line of the code: $view = isset($_GET['view']) ? $_GET['view'] : 'panel'; What can I do here?     
asked by 02.01.2018 / 21:48
1
answer

Perform mathematical operations in real time or array results

First of all, a cordial greeting! I tell you my drawback: I have 2 lists of inventory type (one is the origin of the data and the other should print the values entered in the first to be sent by email) the thing is that the values such as VAT,...
asked by 27.12.2017 / 07:00
2
answers

Does not register data in the MySQL DB from a form

I have managed to show the data of my BD in a table, but at the time of registering new data from a form, I simply do not create them, and I do not know where the error is (I am new in php) insert.php <html> <head> <...
asked by 27.12.2017 / 18:23
1
answer

How to pass a Select and a Checkbox type input as dependent two-dimensional arrays through $ POST to a table?

I have the following form. <!DOCTYPE html> <html> <head><title>ARREGLO_BID</title></head> <body> <form method="POST" action="pruebados.php"> <select name="form[][txtmateria]">...
asked by 27.12.2017 / 15:16
1
answer

How do I send two parameters via url? php

Hi, I'm using laravel, I'd like to know how I can send two parameters per url .. Route: Route::get('detalle/{subcategoria}/{codigo}', [ 'as' => 'detalle', 'uses' => 'principalController@cargarDetalle', ]); Url: <a href...
asked by 19.12.2017 / 13:59
1
answer

Auto-increment in input type date in php with codeigniter

Hello! I need help for something that has been around my head for a couple of days and I can not see how to even start (I know, it sounds pretentious, but we all have passed sometime in this life). What happens is that I have 3 input's of...
asked by 19.12.2017 / 05:02