Questions tagged as 'php'

3
answers

A single script for N forms

I need to know what the correct way for when I submit a form a single script to resolve, the code below only works for your self to create a script for each form. How do I resolve this? Example: $("#meuform") ... $("#meuform2")...
asked by 04.06.2014 / 02:42
1
answer

Concatenate date in PHP to insert into MySQL

Good morning, my question is the method of concatenating and creating a Datetime to insert into a database. Having the variables: $dia = '2018-04-11'; $hora = '09:36'; The desired format is: AAAA-MM-DD HH:MM:SS How do I merge and...
asked by 11.04.2018 / 10:42
1
answer

"No such file or directory" error when using mkdir ()

I have a form to upload files, I have input of type file : <input type="file" class="fileinput" name="pdf"/> Then, if a file has been selected, I want to create a " PDF's " folder. If the folder already exists I do not cr...
asked by 17.05.2014 / 17:33
2
answers

Foreach is returning only one record

I have a problem with my code. I have the following code: <?php require('class/habeo.class.php'); $Habeo->DuplicateRegister('contatos', array('id'=>'1', 'id'=>'6')); ?> This class duplicates the records I have in the database...
asked by 06.07.2014 / 05:11
2
answers

Email alert on this day

I need some way to alert the person by email when they arrive on such day by email using php ... example: September 1st send the email such to the person such ... how to do this with php? I thought about cron jobs, but I do not know if it's t...
asked by 23.08.2014 / 22:06
1
answer

Exchange% 20 for + in search via GET

When I do a search via GET through a form the url looks like this:    test.txt? I would like it to look like this:    test.blogspot.blogspot.blogspot.com Does anyone know how to do this? Reference: link Form Code: <form cl...
asked by 14.09.2018 / 21:42
2
answers

What precautions should be taken when sending an email via PHP

I'm developing a contact form for my site, as usual I first leave it functional, and then work on the security of it. For a simple form, which will only receive a name field, another email field, and finally a message field; What car...
asked by 08.08.2014 / 14:45
2
answers

How to get a json on Controller and pass to array object

I'm having the following problem, I need to get the filtered objects in the Controller to export to report. I'm sending json using Ajax, but I do not know if the object is being sent to Controller, I gave a console.log (response) and the followi...
asked by 17.10.2018 / 14:39
1
answer

remove display item php

I have a problem here, I know it can be simple, but I have not solved it yet. I have a slide running in a loop of PHP, in this slide there are "entities" that when the expiration day arrives they should be removed from slides , only the...
asked by 21.10.2015 / 16:37
2
answers

Query returns empty using PHP with PDO and MS SQLServer

I am migrating a system made in ASP to PHP. However, I'm having trouble making a query using the PDO: Search.php class Busca extends Conexao { private $termo; public function setTermo($termo) { $this->termo = $termo; } pu...
asked by 11.11.2015 / 19:15