Questions tagged as 'php'

2
answers

Message in JSON does not appear

I have this code in PHP: if($qryInsert == 1){ //echo "Evento criado com sucesso!"; echo json_encode( array('status' => 1, 'msg' => 'Evento criado com sucesso!')); }else{ //echo "Erro ao criar evento";...
asked by 09.02.2015 / 01:19
2
answers

Extract only specific extensions from a ZIP

I'm developing a system where in some part of the client the client can send a ZIP file containing only images. I'm trying to do this in a way that I can extract from this ZIP only the files that contain image-specific extension...
asked by 02.02.2015 / 12:39
1
answer

Check all just select the first value of foreach

I tried to do a test of the submit that deletes the scenes only to appear when clicking on the checkboxes, but the same thing happens, it only appears if you select the first one. But if you select the first one and a few more it delete...
asked by 30.01.2015 / 19:39
1
answer

PHP accent problem, MySQL

I have a very strange problem with my PHP code. All my charset are correct <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <meta charset="utf-8"> I already use the code below to correct accent problems h...
asked by 20.04.2015 / 23:08
1
answer

Sort by lowest price in a Mysql table

How to list products that have the lowest price for the largest! From lowest to highest! Using PHP and Mysql.     
asked by 17.04.2015 / 22:36
1
answer

PDO Selection in the database mysql parameter BLOB

I'm having trouble trying to retrieve one or a list of images that I've already inserted into mysql 5 with PDO. I have a class of what has the architecture of my querys to work with the database. class ImagemDao { public function inserirImage...
asked by 21.04.2015 / 23:18
1
answer

How to display data from an XML file in an input field with jquery?

I am having to develop a function that reads the information that in the fields of a file of type .xml in PHP and trying to return that information in the fields of a form. More so far I can only return the data in the form of an object and from...
asked by 22.04.2015 / 16:18
1
answer

Send mail with attachment

I want to send an email by clicking on a button or hyperlink with an attachment. The file will find itself in the directory where the page is. I am using this code Send email with attachments in php It gives an error saying that it does not...
asked by 25.11.2014 / 15:04
1
answer

Join the Results of an Array

I have a PHP application that takes a Json file and creates an array having: city | neighborhood | city | complement | address | status header('content-type: application/json; charset=utf-8'); $file = "data.json"; $info = file_get_contents...
asked by 02.12.2014 / 21:29
1
answer

Run a PHP Paging with JQuery

I made a script that imports images from a CMS for Wordpress and does not overload the server and the import machine. This system has a page that displays 20 elements per page: link I would like to know if there would be a way for the jq...
asked by 20.01.2015 / 16:49