Questions tagged as 'php'

1
answer

ecommerce promotion consultation

I am developing an ecommerce platform, and I came across a problem to calculate the value of the products by applying discount on the SQL query, are being applied in PHP, but when I order sort by value, it sorts without taking into account t...
asked by 20.07.2016 / 16:36
1
answer

How can I improve this loop that has one foreach inside another?

I am making this code that has 2 foreach's and loads 350 properties with more or less 3500 image links , in fact I did not call the photos, only the links, this everything loads in half a second . The variable $array stores content...
asked by 20.06.2016 / 20:41
1
answer

Receive and Send JSON C #

In a local application "WindowsForm" in C #, I need to send and receive data via JSON to a PHP page, is there any predefined function for this?     
asked by 21.06.2016 / 20:44
0
answers

Which standard is used to handle SQLSTATE in PDOException?

I do not know if I do not understand how SQLSTATE works, however in MySQL many errors do not have SQLSTATE , and when I get Exception from PDO , the code that is returned to me is SQLSTATE instead of the e...
asked by 20.07.2016 / 18:03
1
answer

Personalized wordpress user registration

I need to register users in wordpress, and to register information of this user in another table of the database global $wpdb; if( count($_POST) > 0) { $userdata = array( 'user_login' => $_POST['nome'], 'user_url' => '...
asked by 17.06.2016 / 23:17
1
answer

JasperStarter Array and Collection Parameters

I'm working with Jasper reports in PHP. It's all right, I can list them with no problem, but when I have an Array or Collection parameter error occurs. I tried to pass through CMD in several ways the Collection parameter, example: parameter =...
asked by 24.06.2016 / 13:42
0
answers

PhantomJs wait for ajax Request

I'm here with an immense difficulty in PhantomJS; Come on since yesterday I'm trying to automate the denatran process inside a system. How will this work? I already have the user's CPF and RENAVAN, I have a script done with an API that solves th...
asked by 20.06.2016 / 21:28
1
answer

problems with validating hash with password in php

When creating a user, I do the following for criptografar password: $options = ['cost' => 12]; $encripted = password_hash($this->input->post('senha'), PASSWORD_BCRYPT, $options); When logging in I do the following: $result...
asked by 22.06.2016 / 05:01
0
answers

API Analytics returns incorrect date with correct values

Using the Analytics SDK to query, I inform the values for dimensions , metrics , start-date and end-date . I get the query result with the correct data as I checked in the Anaytics panel, but the date is returned as...
asked by 22.06.2016 / 22:44
0
answers

Trigger Div id by button instead a href [closed]

I want to know if it's possible to trigger a DIV using a button instead of a href example this is the div <div id="ver" class="modal-block modal-block-primary mfp-hide">...
asked by 08.07.2016 / 11:22