Questions tagged as 'php'

2
answers

2 Variable by header

Code: $notapost = $_POST['nota']; $cnpjpost = $_POST['cnpj']; $objCheck = new Check(); $objCheck->setemail($notapost); $objCheck->setlocal($cnpjpost); $controller = new Comando($conn); $controller->ListaDados($objCheck); header ("...
asked by 17.05.2016 / 16:59
1
answer

Generate QRcode of a file

I create files in PHP, and wanted to add a QRCode image of each file, to download it. The files are PDF and SVG.     
asked by 29.12.2014 / 11:52
2
answers

Reload image in Chrome

I've created a plugin to crop images through javascript and PHP, but I'm having trouble revealing the edited image after the success of the crop in ajax . I already researched the subject and found a trick that works for most of the main b...
asked by 05.01.2015 / 13:05
2
answers

PHP - Getting all images from a directory and generating in HTML

I have a project and there are several folders containing image files belonging to the gallery: I need to optimize this by getting all the images from a given directory and generating them in HTML. Basically, the project receives the director...
asked by 03.01.2015 / 15:32
1
answer

MySQL returning null wrongly - MYSQLI PHP

I'm trying to do a SELECT through PHP's mysqli, but it's returning null in all parameters of the object returned by $ mysqli-> query ($ sql) >. ItstillreturnstherowsthatIselectedfromthetable,butsomevaluescomenullalso: Follow my code:...
asked by 22.12.2014 / 20:29
2
answers

Insert the last data of a table into a second table

I have a problem with INSERT in PHP. I have a table named products_1 and another called products_2. Table 1 has the same products as the second, but with 5 more products, ie ID 11, 12, 13, 14 and 15 are not inserted in products_2. I need to "cop...
asked by 08.12.2014 / 14:57
1
answer

Validate method name, suggesting correct

I'm using an email library class from the framework Nette . At some point, instead of calling the setSubject method - which is the correct method, I called addSubject , since I had forgotten the method name. So the following...
asked by 27.10.2015 / 16:00
1
answer

System in PHP respond in Parts

I saw that it is possible to make a system in PHP that responds in parts, I did not apply, but basically it would use this function: ob_implicit_flush() So any output would be sent directly to the browser's browser, as opposed to wa...
asked by 28.10.2015 / 18:49
3
answers

remove dynamic div with jQuery counter

Hi, I'm generating fields dynamically using Jquery, and for each field I add at the end of the id a counter. I was wondering how I could do to remove the div that encompasses the button and the fields. this is my form: $contador = ''; fo...
asked by 28.10.2015 / 20:17
1
answer

How are texts and content in WordPress displayed from the PHP file? [closed]

I'm learning PHP to change the company's website, hosted on the server and already online. I have all the accesses, however I am only accustomed with HTML and CSS, and in the researches and beginner tutorials that I studied, they teach the norma...
asked by 28.10.2015 / 12:59