Questions tagged as 'php'

3
answers

Using Faker in Laravel 5

I have a problem using Faker to migrate data to my table. I want to import 50 fakes names and countrys to my table. When I execute the db:seed command, it does not do a% co_of% of anything. Property model <?php name...
asked by 17.11.2016 / 21:59
2
answers

SOAP-ERROR: Parsing WSDL: binding 'BillServicePortBinding' already defined

I have this problem trying to consume a webservice wsdl : The code in php I am doing to consume the web service is as follows: $wsdlURL = 'https://e-factura.sunat.gob.pe/ol-ti-itcpfegem/billService?wsdl'; $client = new Soap...
asked by 22.11.2016 / 22:08
1
answer

Work with OpenTok in Composer.JSON

I have a PHP project and its structure is as follows: The main folder is called OpenTok, inside it there are two files, the index.php and the composer.json and another folder also called OpenTok that includes all the files in the package. The...
asked by 14.11.2016 / 17:15
3
answers

Help with clause Where in MySQL and PHP for android

I'm making an Android application and I need to make a query in sql using php but I do not know why it does not return anything when I ask. This is a java code for Android: AsyncHttpClient client = new AsyncHttpClient(); final String u...
asked by 15.11.2016 / 03:00
1
answer

Data for chart.js From database

I just start with charjs and I need to print values from a database, at the moment I'm doing the exercise with numbers placed directly to the code, which does not work for me. AJAX: $.ajax({ data: { "cc":3}, type: "POST",...
asked by 26.12.2016 / 14:42
1
answer

Insert data where the already defined id exists! in codeigniter

I hope you had a nice Christmas. It turns out that I have a table called votes with the following fields: id , option , name , mail , rut , cond1 , cond2 , date is a voting system then when voting is saved in the db the ID...
asked by 26.12.2016 / 13:54
1
answer

Warning: mysqli_query () expects at least 2 parameters, 1 given in

This is a login that re-calls itself executing the code that is found before the form. I have googled but I do not find help similar to mine. Osea with calls to the database of the type of this query: if (isset($_POST['submit'])) { $query =...
asked by 13.11.2016 / 03:12
4
answers

1 input and a select to 1 same variable

Good evening, mates I am making a form to request a code or a name, so that I go and search in a database. To make it easier for the user, I would like to give you the option to write them down or look for them in a drop-down list directly br...
asked by 13.11.2016 / 04:48
1
answer

The email arrives, but with the fields that the user has filled in empty

good, I have this problem with my form at the time of putting send check my email and I get a message but with empty fields someone knows how to fix it? attached code <?php // Check for empty fields if(empty($_POST['name']) || emp...
asked by 12.11.2016 / 02:02
2
answers

How to make a UNION query in SYMFONY

How could I do the following query in Symfony SELECT * FROM (( SELECT SUM(o0_.qty) AS sclr_0, o0_.price AS price_1, i1_.numero AS numero_2, i1_.nombre AS nombre_3, i1_.um AS um_4, i1_.id AS id_5 FROM ofer_producto o0_ INNER JOIN inv_producto i...
asked by 26.10.2016 / 16:11