Questions tagged as 'php'

1
answer

Handle messages PHP native errors / alerts

I have a mini framework to generate my elements, make js / ajax requests interactions and interact with BD MySQL based on some patterns. I've been using it for quite some time now, but I'm looking forward to a little increase and to insert a...
asked by 10.08.2017 / 16:22
2
answers

UnixODBC: Decimal formatting problem

I've set up a server with CentOS 7, SQL Server 2017, and UnixODBC In tsql, the numbers are correct. But when I look at isql, the decimals are separated by a comma (,) instead of a period (.). How can I fix this? Q: What I really want...
asked by 26.06.2017 / 21:58
2
answers

How do I put an html tag inside the php code to format the text there?

I have the following code and wanted to put the <font> </font> tag for example to format the user. <?php session_start(); echo "Usuario: ". $_SESSION['usuarioNome']; ?>     
asked by 17.06.2017 / 12:16
2
answers

What is the real usefulness of Interface in PHP?

I know that interface is used as a common standard. But I do not think it's useful. So what's the use of creating an interface that knows its name? I have to code each of them in the class that is implementing the interface. What is th...
asked by 01.09.2018 / 13:00
1
answer

What is the use and how to use Netscape HTTP Cookie File?

I need to save cookies of some accounts that authenticate my APP to Twitter, I searched the web and found something like:? # Netscape HTTP Cookie File # https://curl.haxx.se/docs/http-cookies.html # This file was generated by libcurl! E...
asked by 26.06.2017 / 01:30
2
answers

Wrong summer time

I'm having a problem with daylight savings time ... actually cell phones, street clocks, my pc also moved clockwise ...    Daylight saving time generally starts in October. But, to coincide with the election date, President Michel Temer signe...
asked by 22.10.2018 / 04:58
1
answer

Is it possible to place an HMTL file inside the database?

Is it possible to save an HTML file to a BLOB column within the database and then display it as part of the page in PHP? Why do this: It's more for a learning experiment to compare if it gets better than a include on the page....
asked by 26.10.2018 / 23:22
1
answer

Confirm password PHP, Javascript, HTML

I wanted to do the password verification, if the passwords are different then an alert with something like "Passwords do not match" appears, if it did, it would pass through. But the way I'm doing it appears a message from the $ message "The pa...
asked by 05.10.2018 / 19:35
2
answers

Send form data via GET to server (no page refresh)

I have this form and would like to give a GET to variables with their value when clicking the button, without refreshing the page because I have other forms on the same page, is it possible with PHP, or do you have to use AJAX? / p> Fo...
asked by 22.11.2014 / 17:58
2
answers

Decrease PHP variable when clicking on a form button

I want to decrement a numeric variable when I load a button named btn . This is the code I tried: $month = date("m"); $mes=1; if(isset($_POST["btn"])) { $month = $month-$mes; $mes++; } The problem is that I always get t...
asked by 27.11.2014 / 22:53