Questions tagged as 'array'

2
answers

How to save array in a single field in msql

I have a problem I have 3 tables in which in the first two the data is saved correctly, but in the last table only the value of subject1 and code-subject1 are saved for each iteration of the for cycle, I think the problem is in the form of how I...
asked by 30.10.2017 / 21:45
1
answer

Read data from an array that is inside another array

I have an associative array (data) that contains data and another associative array (other values) within it, the problem is that I can only read the data contained before the array (other values) throwing the error Catchable fatal error: Obj...
asked by 16.10.2017 / 22:21
1
answer

Get 3 names and show them sorted

I have a problem, it turns out that in my code, I have three names defined with the Array, but how can I request that my program first request the three names, that is, the user write 3 names whatever they are, sort alphabetically and then show...
asked by 15.10.2017 / 01:47
1
answer

Compare a datarow with a string

Good morning I have the following code for the generation of an excel file in c # int i = 5; int f = 0; foreach (DataRow Row in DS.Tables[0].Rows) { f = f + 1; // Asignar los valores de los registros a las celdas HojaExcel.Cells...
asked by 23.10.2017 / 18:15
0
answers

Error in arrays

package acnumeroletras; public class CnumeroLetras { private double n, um2; private int u, d, c, um; private int d1, d2, u1, c2, m1, m2, m3, c3, um1,DmC; private String cadena = " "; private String unidades[] = {" ", "uno",...
asked by 09.10.2017 / 03:14
0
answers

Save SQL array using Symfony2 and Doctrine

I have an array type column like this in an entity: @ORM\Column(name="acompanantes", type="array") public fuction setAcompanantes(array $acompanantes) { $this->acompanantes = $acompanantes; return $this; } public fuction getAcompan...
asked by 06.10.2017 / 15:11
1
answer

Browse array from ajax function

Good, I have a variable session called api where I have two words stored echo $_SESSION["api"]['0']; This would be parabra1 echo $_SESSION["api"]['0']; This would be word 2 This variable is in a php file and is returned to a...
asked by 23.09.2017 / 22:58
2
answers

How to create database and then consult them in excel through python?

Hello, I am trying to make a program in which I can add data in an excel file and later consult them, for this I must use the libraries openpyxl (for managing the .xlsx file) and tkinter (for the window where they should be enter the data), my p...
asked by 03.10.2017 / 05:52
1
answer

PHP - Insert data in mySQL (under Joomla 3.x)

Good! I want to do something quite simple, save in my database information that I have in php variables collected from a form (mysql database and code executed under Joomla3) With the code that I leave you always shows me a syntax error (w...
asked by 04.10.2017 / 02:38
1
answer

Separate string Python, independent parameters

First of all thank you for the attention, and on the other hand I do not think it's so difficult what I'm trying to do, only that I've been stuck for 2 days and I do not know what to do. I have a software to which a script is added. This soft...
asked by 21.09.2017 / 16:11