Questions tagged as 'php'

1
answer

Select records in order

I'm doing a virtual store from scratch and the customer asked me to do the following logic: Selects first available products with photo Then select those available without a photo Next select unavailable with photo then select the non-...
asked by 01.08.2015 / 22:24
1
answer

Problem with different encodings between databases

I'm creating an application that needs to grab some data that is in a SQL Server database with iso-8859-1 encoding, and insert into a MySQL database with utf-8 encoding. Some words with accents are giving error when inserting into MySQL datab...
asked by 04.08.2015 / 14:29
1
answer

AJAX Navigation-No refresh with PHP

Good people I have a question that I can not solve through the WEB. Home In my page I have a menu that calls some content to a DIV of id content, this with ajax, and it is working, the contents are updated and loaded as I call them. Home My prob...
asked by 06.08.2015 / 01:34
1
answer

How to send only one form once every 5 minutes

Well, I wanted to know, how could I make the person submit form only within 5 minutes. <?php $nome = $_POST["nome"]; $locutor = $_POST["locutor"]; $texto = $_POST["texto"]; $coment = "INSERT INTO 'pedidos' ( 'nome' , 'locutor' , 'texto...
asked by 02.08.2015 / 22:51
1
answer

How to send login and password for this authentication system ..? (automatic login)

You most likely already know and / or have seen that old apache authentication system (htpasswd | image below). Well,Ineedtocreateacodethatsendstheloginandpasswordtotheformandentersdirectonthepage.Noneedtomanuallyentereverything.Iknowthatiti...
asked by 05.08.2015 / 23:56
1
answer

Capturing content from double quotation marks with recursion with RegEx

I need to capture the quotes in double quotation marks with RegEx in PHP. I tried to use recursion with line break in several ways, but to no avail. I browsed several topics and I researched how to do this, but so far I have not been able to....
asked by 06.08.2015 / 14:29
1
answer

PHP Upload ajax of miscellaneous files without submit [duplicate]

I need to upload without leaving the page, I believe the best would be ajax, correct? I found some posts here in SOpt, but I could not adapt my need. I need to send these two fields, one for file and one for hidden text. <input type...
asked by 04.09.2015 / 18:46
1
answer

Save php array to mysql database [duplicate]

I need to save an array in a field in the database table and I would like to know how best to do this if using serialize() and unserialize() or json_encode() and json_decode() . I know you have other alternativ...
asked by 02.09.2015 / 04:18
1
answer

upload multiple images

I know I already have some posts on this, but as I would just like to add to the code and not redo. In the code below, I need to add a way that the upload supports several images and as I still do not handle much I even went to the php site but...
asked by 29.08.2015 / 01:26
2
answers

Upload page without loading music player

I'm doing a site once I have a music player in HTML5 , but every time I change the page the player loads again. In my search it looks like there are solutions either AJAX or IFRAME . IFRAME say it's not very recommended so I thought about do...
asked by 09.09.2015 / 22:59