Questions tagged as 'php'

1
answer

How to get a response from a php to angular

I have a problem that when I run my php file, a json returns to me and I want this answer to be angular. But he does not read it to me. This would be the php file: <?php try{ $conexion = new PDO('mysql:host=localhost;dbname=prueba','root',...
asked by 31.08.2018 / 19:17
0
answers

List checkbox from database using php and ajax

I need to show a checkbox listing from a database with ajax. I have an example that lists a select with data from the database but I can not find a way to modify it to show the checkbox . The form: <form role="form" id="agre...
asked by 31.08.2018 / 03:37
1
answer

Exercising windows command as administrator from PHP

I have to run the following command as an administrator from PHP: $salida="sintaxis\insertarlo.exe sintaxis\sumar.cpp"; $respuesta=array(); $estado; exec($salida,$respuesta,$estado); but apparently as it is an .exe you need the command to r...
asked by 30.08.2018 / 22:28
2
answers

Re-direction of the page with html

I really do not think they need code to try to answer my question, what I did was a login form, and a registration form, the 2 are linked to the same database in php, what I want to do is that at the moment that you enter the data correctly, it...
asked by 09.08.2018 / 23:11
2
answers

Problem with AJAX

I'm working on a code, but I'm taking tests to be able to load information from the database into two fields, from the selection of a select. The problem is that when executing the ajax it shows the error. Now execute the code where the query is...
asked by 31.08.2018 / 19:11
2
answers

because of a tag a with path "path / {{$ var}} / edit" and an 'action': "path / {{$ var}} my final path is:" "path / {{$ var }} / "Path / {{$ var}}"?

I have a view in Laravel with the following code: <h1>Edicion</h1> @foreach ($usuarios as $usu) <h4>{{$usu->nombre}}</h4> <a href="prurequests/{{$usu->slug}}/edit">editar</a> @endforeach A contr...
asked by 12.08.2018 / 03:37
1
answer

Do not load css files

Whenever I work from XAMPP and php I do not load the CSS files, which if I then take them to an external server I see that they work without problem. Do you know if it is due to a bad configuration on my part, bad programming, is a defect of...
asked by 10.08.2018 / 11:15
0
answers

Comment system for news

I am developing a web page with MySQL and PHP, I have a news section where each one can receive comments. These comments can also be a response to another comment. For this I use a table in the database with the following structure Create tabl...
asked by 08.11.2018 / 03:42
0
answers

backup mysql database

With the function below I backup a copy of my database, but something very curious happens to me: If I do it on the local server, it responds: INSERT INTO calendar (guest) VALUES (" muà ± oz Gómez "); On the remote server: INSERT INTO...
asked by 07.11.2018 / 22:42
0
answers

Reading problems with CSV and PHP [closed]

I tell you my problem: I download from Facebook a list of potential customers obtained to hear canoalas advertising. That file is in CSV UTF-16 format. What I do first of all to modify the encoding and pass it to UTF-8 is: iconv -f UTF-1...
asked by 14.08.2018 / 15:59