Questions tagged as 'php'

2
answers

PHP Mysql avoid registering in the bank in capital letters

Good morning, I have a database, where users enter various news. I have already talked to all of them, not to put capital letters in the inclusion, because it leaves the project aesthetically ugly. Is there a way to issue an alert when...
asked by 17.12.2015 / 04:03
2
answers

Upload image Php Bootstrap File Input (Undefined offset)

I'm using the PlugIn Bootstrap File Input And it is returning me 'Notice: Undefined offset:' Codes <input id="file-upload" name="files[]" type="file" multiple> Form already has enctype="multipart/form-data"> Post:...
asked by 17.12.2015 / 05:13
2
answers

Display input value type date

I have the following input: <p>Data Saída:</p> <input type="date" maxlength="10" id="saida" name="saida" value="29/01/2016"/> It is being displayed as follows: But I want to display your value and not the dd /...
asked by 18.01.2016 / 18:44
1
answer

How to generate timestamp in milliseconds in PHP?

The time() function of PHP generates a UNIX timestamp in seconds, for example: echo time() // 1420996448 But I would like to generate a Unix timestamp also with milliseconds, how can I do this?     
asked by 11.01.2015 / 18:23
2
answers

Create page (page) only in PHP code of WordPress

How to create a page only by code? Because it is static, that is, you do not need to enter content through the panel, but to have the URL of that page, you must create a page, even if it is empty, without content. What I need is to have this p...
asked by 24.10.2014 / 15:20
2
answers

Get tag data in XML

I have an XML with the following format: <dados-cad> <nome>Wender</nome> <data>2805094</data> <code>311</code> </dados-cad> How do I in PHP for me to just grab the content th...
asked by 07.10.2014 / 03:52
2
answers

Make a condition to check URL

Hello, I'm using CodeIgniter to develop my website, I'm trying to check which driver the user is browsing, for example, I have the login and registration area, if the user is browsing the page login I want you to show the registration button, a...
asked by 18.02.2016 / 23:41
1
answer

Randomized query in ascending order in MYSQL

I have a table where I have the student's name and punctuation, I need to pick up 5 random students and display them in ascending order of punctuation. I tried to do this, but he's just bringing students randomly and not ordering the score:...
asked by 27.01.2016 / 15:30
1
answer

Roman numerals with ucwords () or ucfirst ()

While typing this question I modified some things, which made me able to solve the problem. So I'm creating this "share the knowledge" if someone has the same problem. Suppose the following names: Assassin's Creed III Problem:...
asked by 30.01.2016 / 16:57
2
answers

Quotation inside quotation marks to send string parameter

The PHP line of code below should be displayed on the website and called using JavaScript. echo " <div class='tipoPagamento' onclick='SelecionarTipoPagamento({$row['CODIGO']}, '{$row['TIPO']}');'> <font col...
asked by 11.06.2015 / 19:42