Re: array -> query



I know my question is toooooo nonsense. Thx though :->


Colin Fine wrote:
kirke wrote:
I have a code with following data format


$datay = array(
34,42,27,45,
55,25,14,59,
38,49,32,64);
$p1 = new StockPlot($datay);


However, I want to change it to query format.
That is,

$sql_A = 'SELECT dtDateTime FROM ~~ WHERE ~~~ ';
$sql_B = 'SELECT dtDateTime FROM ~~ WHERE ~~~ ';
$sql_C = 'SELECT dtDateTime FROM ~~ WHERE ~~~ ';

After executing $sql_A,B,C Query, I can get an data A,B,C ,
respectively.

A = 34, 42, 27, 45
B = 55, 25, 14, 59
C = 38, 49, 32, 64

In that case, How can I write change the code? Moreover, actually
length of A,B,C are all different.
Is it possible? Or should I change the StockPlot function?

Thank you!!!!


Your question does not make very much sense to me, but I think you mean
that you have some implicit structure in your array, that you should
make explicit.

Something like

$datay = array(
array(34,42,26,45),
array(55,25,14,59),
array(38,49,32,64)
);

But I may have misunderstood what you wanted.

Colin

.



Relevant Pages

  • Re: Byte swapping efficiently
    ... signed integers into an array is about the best I can expect. ... Data(DataX, DataY) = ByteSwap ... DataX = DataX + 1 ... The Datatwo-dimensional array is declared as private single, ...
    (microsoft.public.vb.general.discussion)
  • array -> query
    ... I have a code with following data format ... $datay = array( ... I want to change it to query format. ...
    (comp.lang.php)
  • Re: array -> query
    ... $datay = array( ... I want to change it to query format. ... After executing $sql_A,B,C Query, I can get an data A,B,C, ... Your question does not make very much sense to me, but I think you mean that you have some implicit structure in your array, that you should make explicit. ...
    (comp.lang.php)
  • Re: Dynamic JS Form Variables
    ... In a contingent reality, Colin Fine possibly said: ... it was a stupid, stupid problem that was ... in an array, dynamically created portions of the form simply append to the ...
    (comp.lang.php)
  • Re: Checking if a list of names appears in a body of text.
    ... have you considered a decision tree built from your list of company names? ... an array intersection, but this is problematic for two-word company ...
    (microsoft.public.dotnet.languages.csharp)