Questions tagged as 'php'

1
answer

How to create and display a condition through a variable in the cart?

Next, I have some problems to solve in my e-commerce, one of these problems I will explain below: I need to create the following condition: Today my e-commerce has a variable that is applied to each product, this variable is production day...
asked by 10.09.2016 / 19:55
1
answer

Create image blob in PHP

How can I create a blob of an image in PHP and return to JS? I've already tried using file_get_contents() returning to jQuery and creating an objectURL but it obviously did not work.     
asked by 27.08.2016 / 14:55
1
answer

MYSQL - Select 2 tables

Good morning everyone! I'm having a problem querying MYSQL, and the query I'm using is not displaying the results you want. Here's the example: TABLE: CLIENTES (codigo_cliente, nome, cnpj) TABLE: HISTORICO_CONTATOS (protocolo, co...
asked by 08.11.2016 / 14:08
1
answer

ibm_db2 PHP7 Nginx

I'm having trouble starting the ibm_db2 extension on my server. It's a 16.04 Ubuntu Server, running PHP7.0 + Nginx I installed with pecl install ibm_db2 I added the roads in etc / php / 7.0 / fpm / php.ini extension=ibm_db...
asked by 09.11.2016 / 18:03
1
answer

Doctrine 2 INNER JOIN with Subquery

I'm migrating my queries to doctrine using QueryBuilder . And I have a inner join query with a subquery , I'd like to know how to do this using doctrine . SELECT p.* FROM produtos p INNER JOIN (...
asked by 10.11.2016 / 20:33
2
answers

Change select (ajax + php) element value with innerHTML

Hello, I'm doing the famous combo of state charges city. Everything is working perfectly, as I debugged in my script, until the moment it should change the value of select (options returned from the function). Here is my code (index.php): <...
asked by 17.02.2017 / 20:59
2
answers

Form Validation with Submit

In My project I have three forms being one independent of the other. The form1, form2 e form3 . The form1 contains mandatory fields to be filled, and that data will be necessary to generate the information of the other two forms...
asked by 09.11.2016 / 14:05
1
answer

Problem with date!

I have this snippet of code: if ($informations->fundation_date != $dateFoundation) { echo 'estou no echo diferente do date'; $alter .= 'fundation_date/'; } else { echo 'esta igual date'; } echo'data antiga: '.$informations->...
asked by 29.09.2016 / 13:30
0
answers

Transform video into Blob object?

I found this code in a tutorial that to transform the videos into objects and be treated as if it were a url blob , with the first video coming on the page the function works perfectly, however when I call another video through , t...
asked by 03.10.2016 / 01:29
2
answers

Sending form to database with Mysql, Html and php [duplicate]

I'm trying to send to a mysql database the data written by a form. I have created a DB 'db_provida' and a tableau 'testimony' with 4 columns. I can not make this code write to the registry. Here the components: Table 'testimony':   htmlco...
asked by 24.08.2017 / 13:59