Questions tagged as 'php'

1
answer

Data is not printed with the json_encode

<?php include ("connex.php"); $sql = "Select item_parent.id_item_parent, item_parent.html_item_parent, item_parent.km_cambio_item_parent, item_parent.nombre From parent_tipo left Join item_parent On item_parent.id_parent_tipo = parent_ti...
asked by 25.10.2016 / 11:31
2
answers

Make contact form in html in wordpress

I have a contact form in html on a wordpress page, the contact.php that is the action of the form, is in the root but when I give the send button I get an error 500, why is this error? the contact.php that is where we send the mail etc, must...
asked by 27.10.2016 / 09:22
1
answer

Fill data to a custom ListView from server (Web Service)

Good afternoon. I'm running a web service on Android, in this case I'm pulling data from a table in MySql that I have on a server to populate a custom ListView. The query I have is that the data I'm trying to get is not being populated in...
asked by 05.01.2017 / 19:52
2
answers

Incorrect format when generating JSON in PHP

I'm having trouble creating an array to pass it to JSON format. When traversing the result of a query in the database, I assign the values to an array. After this, I format the JSON by putting a header to the list of values. The problem is...
asked by 05.11.2016 / 13:03
1
answer

JavaScript arrays object

I'm doing a sales system in php and mysql. The database operations I do with jquery ajax. I save header and detail of the sale separately, the detail is shown in a grid of jqwidgets from which I extract its datasource in as an object of arrays....
asked by 20.10.2016 / 15:43
3
answers

Bring a value of a model to my view laravel

I am sending from my controller name,app,tlf,cel,fechadeingreso all this goes in my variable $clients . In my view it shows well, now I want to calculate the time that has elapsed since the date that client was entered, for this I c...
asked by 18.10.2016 / 14:40
3
answers

Error CORS jquery, codeigniter, apache

Hi, I have a simple application crud in codeigniter and sql server 2000, in which all queries to the database are made through jquery ajax. I developed it on my local PC windows 8 with xampp, and everything works fine, until I wanted to upload m...
asked by 18.10.2016 / 12:00
1
answer

Problem with CLI in CodeIgniter

I'm trying to run CLI by following the documentation but it throws me errors and there's no way. I am located in the main root of my project, one empty with a couple of methods in welcome.php and connection to a database. The minim...
asked by 19.10.2016 / 07:59
1
answer

Error: SQLSTATE [42000]: Syntax error or access violation: 1064

I get an error when wanting to generate an action like modify or save . Error:    SQLSTATE [42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax; check the manual that corresponds to your MariaDB server ve...
asked by 15.12.2016 / 06:43
2
answers

You can pass variable from bash to php

I have a question that I do not know if it is not possible or that I do not know how it is done. If I have this code php: <?php $salida = shell_exec('bash prueba.sh'); echo "<pre>$salida</pre>"; exit; ?> and this in bas...
asked by 15.12.2016 / 00:34