Questions tagged as 'php'

1
answer

Filter with pagination - Laravel [duplicate]

Good evening, The filter itself appears right, but when you go to another page (by pagination), you lose this filter. I can not find the problem, can anyone help me? My route: Route::any('/recentes-pesquisa','ActionsRecentsControlle...
asked by 24.08.2018 / 00:41
2
answers

Print highlighted matrix-specific values

In my studies here with arrays I'm trying to highlight only the odd values (leave bold), but I'm not understanding how to do this. Below is what I did, but it prints both bold and normal numbers. <?php $matriz = array( array(50, 35,...
asked by 13.03.2014 / 14:47
1
answer

How to change content of a select from another select

How can I put a button related to the other? Example: <span class="IWLABEL10CSS" id="IWLABEL7">Distrito</span> <select name="PAIS" size="1" width="180" class="COMBODISTCSS" id="COMBOFAB" tabindex="1"> <option value="In...
asked by 27.03.2014 / 12:59
5
answers

Product search by name and brand

I have two tables, one called tags with the product tags and another called products . Within this table products have shirts, pants and etc. I want him to do a search, for example "Hollister shirt," he will return all shirts with the Holli...
asked by 07.03.2014 / 17:04
1
answer

RewriteRule specific case for a URL

I have .htaccess rewriting the URLs and a submenu being dynamically created and I need one of these links to open on a different URL / page than the rest. You're like this: RewriteRule conheca/(.+)/(.+)/$ conheca.php?id=$1&slug=$...
asked by 15.03.2014 / 17:27
4
answers

How can you insert into the mysql database a string containing the *

I'm using PHP and Mysql and I'm trying to add a NEXTEL and CLARO type radio ID field: 23*4567 But when I check what has been inserted, I see that it only registered what is before *, thus: 23 Using a normal query like this: INSERT IN...
asked by 06.03.2014 / 21:55
2
answers

Share text on Facebook

I'm trying to share the text from my web to Facebook, I'm using AddThis to create the social networking buttons. It gives me this: <!-- AddThis Button BEGIN --> <div class="addthis_toolbox addthis_default_style addthis_32x32_style"&...
asked by 19.03.2014 / 19:03
1
answer

Function loop returns only one value

I'm trying to get data from an online page only that the code is having a problem, it can not process all items in POST mode, within foreach . Even if I put the items in the list, just get the last item posted. I would like to kn...
asked by 28.07.2018 / 01:23
1
answer

Ajax does not work in firefox and chrome works

I'm giving an insert in the database, in chrome it works, in firefox my request does not succeed. Has anyone gone through this? I changed the serialize () function and passed the values in an invidual way, to see if that was it. I tested the...
asked by 28.07.2018 / 01:05
1
answer

How to execute a JAVASCRIPT code by PHP without event

Next, I'm trying to replace alert with modal that of jquery that uses jquery. In case I'm using the first example: <div id="ex1" class="modal"> <p>Usuário ou senha incorretos.</p> <a href="#" rel="modal...
asked by 23.07.2018 / 06:49