Questions tagged as 'php'

1
answer

Generate php mysql database XML after query

How to generate an xml file from a database after a query and in sequence download it automatically?     
asked by 05.05.2015 / 03:05
1
answer

How to install old versions of PHP below php 5.5?

I've heard that Ubuntu contains packages already available for installation, well, I've confirmed it and it's true, I installed only that it came with php5.5 , I need the php5.2.17 , for installation of my vBulletin , how can I install it?...
asked by 07.05.2015 / 05:28
1
answer

How to send information from a dynamic form?

I have to make a form where there will be this table, but instead of being static is going to be dynamic, the person can introduce 1 familiar, 2, 3, 4, 10, whatever she wants. For this I am using JQUERY , and whenever the person clicks on...
asked by 30.04.2015 / 18:09
1
answer

Can a Model use a WebService for "business rules"?

When using some ready-made frameworks (such as Laravel and CodeIgniter), I noticed that the Models are usually extended from other classes that usually connect directly to the database, so I understand this is not mandatory, since Model must con...
asked by 02.05.2015 / 04:36
1
answer

Redirect page 404 to search

Hello, I have a site in magento and some product pages no longer exist, but there are other products with similar names. What happens? Many of these links are still being accessed, what I would like to do is when a 404 error is found on the site...
asked by 17.04.2015 / 14:31
1
answer

Display foreign keys from a table in the query

I have a table where every projeto can be related to up to 4 produtos . Main table (foreign keys): IDPRODUTO IDPRODUTO2 IDPRODUTO3 IDPRODUTO4 Table produtos ID N...
asked by 15.04.2015 / 00:36
1
answer

Validate categories with regular expression

I'd like to know how to validate categories with regular expressions. So I have a list of categories separated by commas. Each word must have a maximum of 20 characters, I need to validate each comma if the word has alphanumeric characters. I...
asked by 08.08.2015 / 23:17
1
answer

Input within DIV with visibility: hidden

This is the following, I hid a% w / o%, which has inputs of a form inside, with style='visibility:hidden; position:absolute' And I wish these div did not send information when the form was forwarded. My question is: Can you just d...
asked by 10.08.2015 / 18:16
1
answer

Input hidden + select

Personal I have a foreach populating the select as below: <select id="status" name="status[]" class="order-type"> <?php foreach ($produtos as $produto) : ?> <option value="$produto['id']"><?=$produto['nome'];?...
asked by 09.08.2015 / 00:31
1
answer

File-Transfer Cordova how to use php

Hello, I have the following code onDeviceReady: function () { navigator.camera.getPicture( app.uploadPhoto, function (message) { alert('get picture failed'); }, { quality...
asked by 28.04.2015 / 15:48