Questions tagged as 'php'

1
answer

How can I make two json parse

I need to parse two jsons I have it like this but I get an error. The variable obj.descripcion does not give me an error if it sent one but when it sent two it gives me an error. json that PHP returns and I capture in response {"des...
asked by 29.05.2018 / 14:10
1
answer

Model View-Controller PHP

I'm doing a test web page with the Vista Driver Model, but I'm getting an error that I do not know how to solve. I leave the code to see if you can help me. Index.php <html> <body> <title> HUMAN DEV...
asked by 18.02.2018 / 20:23
1
answer

How can I check in Mysql only the same names of a product table?

My Table product is this: Product table id Nombre precio stock 1 Zapato $45.00 40 2 Zapato $23.00 30 3 Zapato $23.00 30 4 jeans $28.00 10 5 lentes $89.00 20 This is a small table that I can not make a q...
asked by 15.02.2018 / 17:54
2
answers

Delete in laravel using id

I have a very simple method, that the only thing that it does is take the id from a form, to erase the insertion, the issue is that it does not work for me: Vista: I have a form, in which you select the id of the vacation and I pass it to the...
asked by 23.02.2018 / 08:53
2
answers

Mark first radio button always - HTML

I have a view of opinions and I want to ALWAYS mark the one that is in first position, whether or not it exists, in the next update of the visualization. The first one is marked for me, because I have if($opinion["idopinion"]==1){ and...
asked by 20.12.2017 / 10:38
2
answers

How to load content inside a DIV with Ajax and php?

Hello Good Nights or Days have good today the problem I have with this  code is to load content when you move the browser bar to the bottom and what I want to do and I can not work within a div using the scroll as well as Facebook chat I hope yo...
asked by 30.11.2017 / 02:12
1
answer

Updated PHP - HTML form

I have a form to add data to a table (visual in HTML) and to the database (in a table called "Cabanas"). Doubts: 1) Why is not the table automatically updated when you click "Save"? And you only see the cabin added when we update t...
asked by 29.11.2017 / 09:20
1
answer

Upload file and rename it

Good afternoon. I want to upload a file to my server but it will be renamed with the name of a variable that comes by method GET , that is, the address would be localhost/fotos/subir.php?nuevonombre=juan , and if the file is called...
asked by 22.11.2017 / 21:18
2
answers

how to interpret a string as a php variable

I intend to do this: echo $.'variable'; as a result of this: //Solicitamos a la BD todas las id de la tabla categorias $data = $this->Global_model->get_select_array('idcategoria', 'categoria_tmp', TRUE); //rastreamos to...
asked by 09.11.2017 / 20:50
2
answers

Problems with css, js and addressing when passing to the server with codeigniter

Some time ago I am working on a project that I developed in Codeigniter 3.x where I carry out the typical actions of CRUD, in addition to the call to JOBS in SQL Server. When testing the service locally, it does not present any inconvenience,...
asked by 17.11.2017 / 12:56