Questions tagged as 'php'

2
answers

PHP: Remove duplicates ARRAY [duplicated]

I have armed an array of this type: $array =array('epc' => "$tag",); When doing a print of $ array I get the following:    Array ([epc] => 1792) Array ([epc] = > 1792) Array ([epc] => 1212) Array ([epc] = > 1792) Array ([epc]...
asked by 28.09.2017 / 04:27
2
answers

inner join without duplicates

I'm doing a system in php in which I have two tables in one save the records and in another the boxes where each record goes, the result is this way -------- -------- --------------- CASILLA SECCION REPRESENTANTE -------- -------- -...
asked by 15.06.2017 / 20:46
2
answers

upload an image in PHP and save the result in database

I tried to upload a profile picture using this code in php and it saves it in the path that I specify but it does not save anything in the database. I am working with wampserver and phpmyadmin . The code I have is the foll...
asked by 20.06.2017 / 15:01
3
answers

Query in MySQL joining several tables [duplicated]

I'm trying to do a query in mysql in several tables at once but the results that I get do not end up serving me. This is the code I'm using: SELECT *, art.id AS IdArt, art.nombre AS NombrArt, conf.Conf1 AS Sexo, ean.id AS IdEan FROM 'Ar...
asked by 15.06.2017 / 17:52
2
answers

I do not understand why I think I already use this type of query and this gives me an error

Query generates this error:    Warning: mysqli_query () expects parameter 1 to be mysqli, object given   in C: \ xampp \ htdocs \ system \ my system \ my system \ consultas.php on line   90       Warning: mysqli_fetch_array () expects parame...
asked by 18.06.2017 / 01:28
1
answer

Select data from a table related to a user

I have these two tables: users: +-----+----------+------------+ | id | nombre | apellidos | +-----+----------+------------+ | 1 | juan | apellido1 | | 2 | pepito | apeliido2 | +-----+----------+------------+ subjects: +----+--...
asked by 03.06.2017 / 17:02
2
answers

Ajax POST internal error 500

Running the ajax throws the POST 500 error. The php throws the problem if I define $columna= $_POST['columna']; but if I define by test $columna='marca'; the PHP works correctly and sends the information to ajax correctly. So I gue...
asked by 25.07.2017 / 22:50
1
answer

Search MySql using a drop-down list select with php Ajax Jquery

I am doing a search input using the event keyup in jquery, now if instead of input I use a select what event would I use or how would I do in that case? This is the input <input type="text" name="pedido" class="form-...
asked by 03.08.2017 / 14:47
2
answers

Protect folder in apache [closed]

Good afternoon Can this be done? I have an apache server with an application developed in php (yii2), my "problem" is as follows, the app has validation by username and password, if you are logged in the system you can access a page where vid...
asked by 25.05.2017 / 20:02
2
answers

Condition a form in symfony2?

Well, I have the following data in a symfony form: ->add('lugar', EntityType::class, array( 'class' => 'AppBundle\Entity\Lugar', 'mapped' => false, 'query_builder' => function (Entity...
asked by 24.05.2017 / 07:39