Questions tagged as 'php'

1
answer

OpenCart Free Shipping CEP

The customer wants to offer free shipping for purchases here in the city, opencart already has a free shipping option for price, I just want to know how to make a zip condition here. I want to know which files to edit and such. And also how t...
asked by 15.06.2015 / 18:23
1
answer

str_replace () not working correctly with generated arrays

Follow the code: $minu = range("a", "z"); $maiu = range("A", "Z"); $letras = array_merge($minu, $maiu); $minusculas = array_merge($minu, $maiu); When doing a str_replace($Lminusculas, $Lmaiusculas, "TesteSimples"); the following is...
asked by 05.06.2015 / 00:50
1
answer

How to fetch values from just the selected checkboxes in codeigniter

I have dynamic checkboxes, and wanted to fetch the values from those that were selected, like doing this with codigniter: Model to go the fields and create the necessary checkboxes: public function apoioPertendido(){ $query = $thi...
asked by 05.06.2015 / 18:28
2
answers

How to Type in a Select?

How can I make a select work also as a search field? Type, the client types as if typing in a input text for example, and the select options are being filtered according to what he typed. I'm not sure if it would be a sel...
asked by 03.02.2016 / 18:11
1
answer

Form does not do the action

I created a form where I want to insert data into the database, but I do not want the user to enter the data, so I put display:block in the form. However when I click the button nothing happens. The code for form is as follows:...
asked by 01.02.2016 / 00:45
2
answers

How to pass parameter in a route?

I have a simple test routine, which is not working in the final part. The idea is to query a MySql database and compose a page with the result, which works correctly. By clicking on a link in a line of this composite page, line data should be...
asked by 02.02.2016 / 11:49
3
answers

comma between arrays

I'm bringing the following information from a form: $seg = "Seg"; $ter = "Ter"; $qua = "Qua"; $qui = "Qui"; In many cases, some of these fields will be empty, eg: $seg = "Seg"; $ter = "Ter"; $qua = ""; $qui = "Qui"; I would like to get...
asked by 03.02.2016 / 18:12
1
answer

move_uploaded_file can not get a file

Hello, move_uploaded_file can not get a file. echo " <form method=\"post\" enctype=\"multipart/form-data\" action=\"testar_formato.php\" id=\"upload-container\" class=\"fileUpload\"> <span>Upload<...
asked by 05.05.2015 / 22:03
1
answer

Select all elements of an array in a variable with Regex in PHP

I would like to make a regex to apply a class to each line with roman number, would the regex be? /(<li>\s*<p>$romanos\)_\-_/ ? The documents look like this: <li> <p>I - blablabla</p> </li> <l...
asked by 05.05.2015 / 06:32
3
answers

Collect the instagram tag images for the site

Good evening! I would like to create something like what you can see at the bottom of this page: link Show all the photos that are tagged #taflovessneakers and I would like to do the same for my website Is it a very complex job? I have s...
asked by 03.05.2015 / 01:32