NameSilo

How I fill javascript array with php variables?

Spaceship
Watch
Posted: Wed Mar 31, 2004 1:38 am Post subject: How I fill javascript array with php variables?

--------------------------------------------------------------------------------
Hello,

I need fill javascript array with some php variables from

$vyber_osoba="SELECT ID,UZIVATEL,NAZEV FROM A_PRAVA WHERE UZIVATEL='".$_SESSION['uzivatel']."' ";
$vysledok_vyber_osoba = ODBC_Exec($pripojenie, $vyber_osoba );

while(ODBC_Fetch_Row($vysledok_vyber_osoba)):
$meno=ODBC_Result($vysledok_vyber_osoba, "ID").ODBC_Result($vysledok_vyber_osoba, "NAZEV").ODBC_Result($vysledok_vyber_osoba, "JMENO");
endwhile;

And I need put variables $meno into this array and variables must be saparate by comma

var selectbox = new Array('$meno0','$meno1' .... ); for example .....

It's possible, thank you very much

wiedzim
 
0
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back