Questions tagged as 'php'

1
answer

how can I send a variable php by onclick for a function js [closed]

I want to make an img html tag as a button that sends a value php to a function js and then insert it into an array, if you could help me I thank you infinitely php while($row = mysqli_fetch_array($result)){ $cartaNombre = $row["Carta"...
asked by 02.05.2017 / 05:15
1
answer

My function (js - ajax) about registering my form

Good day forum. I have a detail with my forms, to add records to my database. I have two forms that are added through ajax-php: Form 1: <form class="form-horizontal" method="post" id="addpartidaspallets" onsubmit="return altaPallets()...
asked by 02.05.2017 / 21:58
1
answer

Distinguish user roles in query

Greetings friends I have a problem with a consultation in sessions, I have a mini internal forum between users and administrator he registers me well and the mjs are shown well the only problem I have is when it comes to showing the names I mean...
asked by 02.05.2017 / 23:10
1
answer

PHP - Sort and group values of a multidimensional array by uploading multiple files

I have the following form that when sending it with multiple images, it generates a multidimensional array with all the data ordered by default. HTML and PHP form: <?php if(array_key_exists('send', $_POST)) { echo "<pre>"; p...
asked by 07.05.2017 / 16:49
1
answer

FatalErrorException in helpers.php line 36: Call to undefined function exif_imageType ()

Good morning: I cloned a Laravel file and the cover of the page if it opens it, but when I click to go to the next page I get the following: Call to undefined function exif_imageType () If anyone knows how to solve this problem, I'll thank them....
asked by 29.03.2017 / 17:11
2
answers

How can I show the product name when I insert product code?

Purchase products, when inserting code, show the name of the product to which it belongs. This is the code: <div class="md-modal md-dark custom-width md-effect-9" id="formnproducto"> <div class="md-content"> <di...
asked by 28.03.2017 / 16:09
1
answer

Select Where datatables with php and Ajax

I have a system that allows you to upload documents and for each document write your comments, this part already works but I need to show the comments that were written for that document using Datatable This is my code:    Table.php Thi...
asked by 29.03.2017 / 15:36
2
answers

How to select a range between dates to avoid an SQL insert?

I have a table called etapa which has id_etapa, etapa_inicial, etapa_final ... what statement (sql) can I make to show the stages that are between the etapa_inicial and the etapa_final ? since the idea is that if the...
asked by 28.03.2017 / 15:51
1
answer

Doubt with PHP sessions

I'm trying to do sessions with PHP and apparently I'm not creating the session I've tried everything and I still do not know what it is, could someone help me? <?php session_start(); include 'login.php'; if (isset($_SESSION['correo'])) {...
asked by 07.04.2017 / 03:13
1
answer

input date and time

I have an input in which I select the date and a select to mark the time. Of those two input, I have to make an insert to the database since the field is datetime. How could I do it? I can not use datatimepicker, because it deconfigur...
asked by 25.04.2017 / 11:58