1. #1
    Ext User
    Join Date
    Apr 2008
    Posts
    13
    Vote Rating
    0
    orellanas@yahoo.com is on a distinguished road

      0  

    Default blank rows in a grid with php

    blank rows in a grid with php


    Hello guys…
    I have a problem with a grid that I took from the internet. (from the site below)
    http://savvyduck.blogspot.com/2008/02/javascript-introduction-to-ext-grid.html

    what I did is to change the sourceData that it has in the example.
    // 1. Create some dummy data data
    var sampleData = [
    [ 'Bob', 20, 13.45 ],
    [ 'Bill', 40, 12.92],
    [ 'Mike', 45, 23.02]
    ];

    This is mine….
    // 1. Create some dummy data data
    var sampleData = [
    [<?php do { ?>],
    ['<?php echo $linea['codigo']?>','<?php echo $linea['descrip'] ?>',<?php echo $linea['costouni'] ?>,<?php echo $linea['valoruni']?>],
    [<?php } while ($linea =@mysql_fetch_array($result))?>]
    ];

    And I guess the problem would be
    [<?php do { ?>], (this line maybe is the whom in blank)
    …..
    [<?php } while ($linea =@mysql_fetch_array($result))?>](also this line maybe is the whom in blank)



    This is the grid where u can c the problem that i have
    http://www.oregonsv.pcriot.com/ds/cw_CtgopD.php

    can you help me please

    thank u

    Atte,

    OregonSV
    El Salvador C.A.

  2. #2
    jay@moduscreate.com's Avatar
    Join Date
    Mar 2007
    Location
    Frederick MD, NYC, DC
    Posts
    16,353
    Vote Rating
    79
    jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all jay@moduscreate.com is a name known to all

      0  

    Default


    In the future, post this message of sending a private message to people.

  3. #3
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    This is not a PHP support forum. If you don't know how to write/debug PHP, please google for an appropriate forum/reference/book./

  4. #4
    Ext User
    Join Date
    Apr 2008
    Posts
    13
    Vote Rating
    0
    orellanas@yahoo.com is on a distinguished road

      0  

    Default


    Sorry,
    but i thought that was a problem from datasource which is going with ext.
    anyway.
    Can you tell me how can i do to pull the data from DB, with PHP


    Thank u. for your help.


    Atte,

    Oregonsv
    El Salvador C.A.

  5. #5
    Sencha User
    Join Date
    Mar 2007
    Posts
    7,854
    Vote Rating
    4
    tryanDLS is on a distinguished road

      0  

    Default


    As my previous post said, this isn't the place to learn PHP - Ext doesn't care about your backend as long as you pass the data correctly. That being said, I suggest reading the grid FAQ, which I believe has an example in PHP. Searching this forum will probably lead to some other PHP example/links.

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi