Questions tagged as 'php'

1
answer

Insert, upload and Update in the same process

Well with a problem here that I tried to solve in several ways without success. Here's the catching part. $stmt->execute(); -------> final do insert até aki ok if (DB::lastInsertId()) { // pego o ultimo id $lastId = DB::lastInsertId();...
asked by 26.02.2015 / 21:00
3
answers

Capture "textarea" from the Responsive plugin WYSIWYG (text editor)

I have the following code: <!doctype html> <html> <head> <meta charset="utf-8"> <title>Untitled Document</title> <link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="st...
asked by 27.09.2014 / 05:17
2
answers

Display MySQL PHP Errors Correctly

Hello, I have a simple registration form, where repeated records can not exist in the cpf field and also in the resposta(cupom) field. The validation of cpf is ok and the data does not duplicate in MySQL, but the verificatio...
asked by 26.09.2014 / 19:18
2
answers

Add a fixed word to a friendly URL

Good evening, I'm doing a search and I'm having a problem passing the value that is written in input to another page where the result will be displayed. Url example I'm trying to pass the values http://exemplo.com/locais/pesquis...
asked by 18.03.2015 / 02:35
2
answers

Replace in large string or split loop

I have a multidimensional array with some routes and need to convert some elements defined as: (alpha), (int), (id), etc. . As an array, I currently use a loop to do the replace. I thought of approaching another way without the loop, and...
asked by 01.10.2014 / 10:17
2
answers

PHP - online lambda functions

Dear, I have a system where the user (with development permission) can schedule some online routines, to be executed within the system, without the need to create file and call via require / include. To execute this function, I use create_fun...
asked by 18.03.2015 / 19:52
1
answer

Problem with fopen

This file is performing its function perfectly, but it is returning some errors and I would like to correct them. I need to know if I have to use fopen and file_get_contents because I can not undo any. # /pasta/copy.php <?php...
asked by 14.03.2015 / 22:45
2
answers

Print associative array element within string without concatenation

I have to print an tag HTML through a echo with the value of an associative array, but I can not get it to print using concatenation. Code .php (this way it is not working, I believe the quotation marks that surround 'name')...
asked by 25.01.2015 / 13:14
1
answer

Pass php session value to Ajax

I need to get a value from a php session that is on a page where I have a contact form and pass through Ajax to another page, on that page I check whether the values are the same or not, but I can not do . My captcha code creates the session...
asked by 05.02.2015 / 21:39
2
answers

Problem with Seed Relationship between Category and Sub-Category in Laravel 4

I do not know how I do with my Seeds, I have 2 entities: Category and Subcategory. I want to be able to run seeds and be able to register my Categories and after my Subcategories, only Subcategory has a relationship with Category: needs id...
asked by 16.03.2014 / 18:01