Questions tagged as 'php'

2
answers

Form fields are empty in the mail that is sent

I have a form in php that works when uploading it to the server (it sends mail), but the fields that the user fills out go blank (with which he does not send any information in reality) this is the form <form action="contact_process.php"...
asked by 15.03.2018 / 22:06
2
answers

Pass The Container text span id to a PHP Variable

I have a Video Game programmed in HTML and JavaScript from which I wish to pass the points obtained to the MySQL Database and I can not find the correct way to achieve it. JavaScript Code: function updateScore(){ var score = (snakeLengt...
asked by 15.01.2016 / 03:20
2
answers

Redirect to another page in button Accept and issue PDF document

I have this situation: 1.- Register my data and at the moment of clicking on Accept; records are saved and a PDF document is created with FPDF without any problem <div class="row"> <div class="text-center"> <div clas...
asked by 10.02.2017 / 18:17
1
answer

Error in php and sql by odbc connection

I have the following code. The moment I run in the browser it tells me the only error:    odbc_exec () expects parameter 1 to be resource, string given in C: \ AppServ \ www \ central \ index.php on line 64 line 64 is as follows: $resul...
asked by 10.05.2018 / 23:39
1
answer

Calculate difference of php hours

I have a web application where users can insert the extra hours they have done. One problem I have is that I made a function in which I calculated the difference in hours. In the application, if a user has worked less or 4 hours, those hours are...
asked by 06.08.2018 / 15:06
1
answer

Use of cookies vs session in PHP

Currently I have a corporate intranet working with session variables, and it does it very well. Today I will start with a project for the general public and I decided to load the datastore on the front-side with cookies. I have never used them a...
asked by 17.03.2017 / 22:43
2
answers

Problem when deleting with php in a mysqli database

I am making a form in which you can already save perfectly in the mysqli database, and I already get the data in an html. Now what I want is to erase with a button. The thing is that it deletes, but always the last record, and not which one...
asked by 25.10.2016 / 23:49
1
answer

Two linked selections (Country and Province) that do not link

I have two selections, one I charge the countries, in the other the provinces that "reacts" according to the country that was selected first. Just consulted how to bring from a BD the code of a country and make that select countries show me the...
asked by 29.07.2017 / 15:42
4
answers

Problem to save data with CKEDITOR PHP AND MYSQL

I'm trying to insert data from a CKEDITOR into a mysql database with php, but I'm trying to capture that data through different modes that I found on the web, but I can not insert the CKEDITOR content in a field of the BD: htmlentities, htmlspec...
asked by 05.10.2016 / 02:48
1
answer

Read data from an external JSON API with PHP

I am reading a file json external (Through a URL ) and I can get the values of the first content without problem, but the second content does not, I imagine that the problem is due to the brackets "[ ] "at the beginning and end....
asked by 28.07.2017 / 21:37