Questions tagged as 'php'

1
answer

Accents are not shown [duplicated]

I am loading this information from a DB, but when it is displayed in the HTML it does not recognize the accents. I'm using PDO to connect to the DB and I use UTF-8 in the html Reviewing phpMyAdmin I see that the coding is as fol...
asked by 08.11.2018 / 23:28
1
answer

Avoid Warning: POST Content-Length when uploading file

I'm trying to upload a file with PHP , I'm using the basics according to the PHP . <form enctype="multipart/form-data" action="carga.php" method="POST"> <input type="hidden" name="MAX_FILE_SIZE" value="2097152" /> Subir a...
asked by 10.08.2018 / 08:52
2
answers

PHP Fatal Error: Class "Controller" not found

I'm trying to run a PHP script on the Linux command line with: php -f ClienteController.php and I get this error in the command line: PHP Fatal Error: Class 'Controller' not found in (__directorio__) The ClientController code: <?p...
asked by 01.08.2018 / 15:37
1
answer

how to do a search engine in laravel with related tables

hi good morning community today I would like to ask you how to do a scope in Laravel but this is related to other tables, here in the example I'm looking directly only the id of the installer and I need to look for it through the name but when I...
asked by 28.11.2018 / 15:41
1
answer

How to open a Modal, in CRUD of data with jQuery

I have a CRUD of DATA, in which I try to do something interactive with jQuery: This is the part of the table, in which it contains the data, and its buttons to edit, see etc. <td><input type="checkbox" name="check"></td> &...
asked by 29.08.2018 / 13:33
2
answers

A .serialize () does not take the form data

I have a problem with jQuery. The problem is that I have an AJAX request to send me two data to another .php page that asks me a question. <script type="text/javascript"> $(document).ready(function(){ var data=$("form").se...
asked by 28.11.2018 / 23:28
1
answer

QUERY does not run correctly in PHP

I have two queries in php , after using echo $id_inspirador the value of the first query is printed correctly, but I have an error regarding the second Notice: Undefined index: id_proyecto , I do not know if the value o...
asked by 28.11.2018 / 19:54
1
answer

Receive data from a loop in a controller method in laravel view

I have a method in the controller that inserts a table, and I want the bar to increase for each insert, but this loop is in the controller. Is there any way to do that? //codigo javascript $.ajax( { type: 'get', url: "{{...
asked by 21.08.2018 / 19:54
2
answers

Pass value from mysql to input

Hello good afternoon I need to pass value from mysql to input (text box), I'm doing it in the following way but it throws me the following error: $conexion=mysqli_connect($nombre_host,$nombre_usuario,$contrasena_usuario,$nombre_bd); $cons...
asked by 04.08.2018 / 20:07
3
answers

Leave empty cells in an HTML table

How can I leave empty cells in a table if I do not want anything to appear in that field? I am sending to call names of some subjects registered in my database, I send them to call and bring them to me there is no problem, the problem is when in...
asked by 04.08.2018 / 08:43