Questions tagged as 'php'

3
answers

Function does not return value

Colleagues ... I have a method that brings the results of a table. So far so good. What is puzzling me is that after I changed the server, the structure of this method is the same for two other results and works perfectly, but when creating a...
asked by 11.05.2015 / 18:02
1
answer

Codeigniter images do not download [closed]

I'm new using CI, and I'm having problems with it because it does not load the images in localhost environment (using XAMPP) . I have already inspected and verified if the path is all ok, and this is in fact, but nothing of the image to upload....
asked by 09.09.2016 / 16:54
2
answers

Forms and Files

I'm making a form where I basically access a .txt file in CSV format that contains some articles and their prices (eg cheese, 2.10). The program displays the list in a table, and below are two fields that ask for "Article" and "Quantit...
asked by 12.10.2016 / 16:29
3
answers

How to use a string from the database [closed]

I have the following string saved in the database. {"key":"save","user":"1","season":"2016","week201549":{"bloco":"Microciclo","day05122015":{"z1":"0","z2":"0","z3":"0","z4":"0","z5":"0","z6":"0","z7":"0","terrain":"Terreno","rpe":"7","elevati...
asked by 10.12.2015 / 18:58
0
answers

How to separate PHP code from HTML? [closed]

Good evening, And the following I'm developing a big project and I'm almost done, but now I've seen the need to separate the code due to the organization's structure and performance issues, because it's a platform that will have a lot of traf...
asked by 09.03.2015 / 01:20
2
answers

What is the best Xampp / PHP version to update and what is the difference?

I want to update my XAMPP Version: 1.8.3, plus PHP Version 5.5.15, but I have some doubts: What is the best version to upgrade, if it is (5.5.38, 5.6.24 & 7.0.9)? Whether this will affect my codes or not? Is there any difference between...
asked by 25.10.2016 / 13:54
2
answers

What are CRON JOBS and how do you use them with PHP [duplicate]

Recently I asked this question , but I found it kind of vulnerable to use the codes that were answered, summarizing the best answer: Create a Cookie with a Time and hide the button, after this time runs out, the button returns. (If some cheek...
asked by 01.08.2017 / 09:45
5
answers

How to run a PHP function multiple times?

I have this function in PHP, it runs a Python code that returns the temperature coming from the Arduino. I need it to run every 2 seconds so I can display the updated information on the browser screen. What would be the best way to do this...
asked by 01.11.2016 / 15:10
2
answers

Error trying to retrieve value from $ _GET on submit

My system does a destination search before opening the registration form, in this search I get the DestinationID parameter and I enter the input. TheproblemisthatwhenIclicksaveitcannotsubmitthevalueoftheinputDestinationID.Thisisthelinethatre...
asked by 31.05.2017 / 02:06
3
answers

PHP remove an excerpt from the URI with regular expression

I have the following uri $uri = "http://www.meudominio.com.br/pagina.php?campo=teste&ordem=2&cor=azul" How to remove "ordem=2 "from the url above with regular expression, knowing that the value of the order, time can be 2, 3,...
asked by 17.10.2016 / 23:04