Questions tagged as 'php'

1
answer

Real estate site system and redirection for each targeted domain

I'm developing a real estate system in which when the user does his registration he gets a basic URL to access his site. Example: foo.bar/modelo/1/site.php?id=73646 That is, all the files in the real estate system are inside the director...
asked by 21.12.2015 / 16:48
1
answer

How to improve a star rating code?

I have a website and certain points hold me, like this evaluation, is not very cool this script , someone fit can improve for me or tell me what can improve, to leave the code more organized, check if user selected some star, give error message...
asked by 15.12.2015 / 23:24
2
answers

PHPExcel generates broken worksheet [closed]

I'm using the PHPExcel class to export a DB table. But I'm having trouble downloading the spreadsheet. To test, insert values manually without doing any select in the DB. But when it generates the spreadsheet and downloads it, the spreadsheet op...
asked by 03.12.2015 / 19:46
2
answers

What should Query be for a result of tuples in which the value of a column is 'x'?

I have the following query: $select = "SELECT concat(mid(cpf,1,3),'.',mid(cpf,4,3),'.',mid(cpf,7,3),'-',mid(cpf,10,2)) as cpf, nome, genero, nome_cracha, rg, crm, crm_uf, rua, bairro, cep, cidade, estado, telefone, celular, fax, email, cna...
asked by 31.01.2014 / 16:46
2
answers

Upload and structure for storing images in Laravel

I started to build a portal, using Laravel, which has the following requirements: users, places belonging to users and classifieds belonging to users . As each of these requirements requires images, I would like to know the best method for s...
asked by 15.01.2014 / 12:23
3
answers

Friendly URL for GET form in Laravel 4

My question is this: I have a search form (GET), and I would like to know how to execute submit sending those parameters to the URL in a friendly way. Note: parameters are not required. Form : {{ Form::open(array('route' => 'ne...
asked by 16.12.2013 / 18:04
1
answer

Error removing accents from a string for creating friendly URLs

Hello, I would like to know how I can get around the error that is being caused in the code below. When I add accents, special characters are being dropped instead of converted. I got this code with a friend for a while and nothing started to...
asked by 03.10.2015 / 18:58
3
answers

Select data and display

I'm having trouble querying MySQL in a simple way. I already have a file in the includes of connection to the bank that works normally. But in the query page I can not display them. The code I found on Google . 1 - I do not unde...
asked by 23.02.2015 / 15:53
1
answer

Transform div's into input and validate them in a form

I have a div with the attribute contenteditable="true" , which opens the text box in order to write directly on the div, right, so far so good, just what kind, I wanted to use this div as an input a form, I did not want use the input even...
asked by 20.07.2018 / 15:17
1
answer

PHP SDK Moip: Which tag to use for Banks when in Debt online?

In the following example, for debit with Banco Itaú, it works perfectly: $payment = $order->payments() ->setOnlineBankDebit('341', $expiration_date, 'http://localhost/federais/') ->execute(); $redirect = $payment->getL...
asked by 28.07.2018 / 21:42