How I fill javascript array with php variables?

Namecheap AuctionsNamecheap Auctions
SpaceshipSpaceship
SpaceshipSpaceship
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
Close
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Appraise.net

We're social

Escrow.com
Spaceship
CryptoExchange.com
Domain Recover

NamePros updates

Quick replies: search, your most used replies, and more on every post
Quick replies are easier to find and use now. The quick reply menu has a search box. Type a few letters to find the reply you want. A...
AIVikings
Catchy
  • The sidebar remains visible by scrolling at a speed relative to the page’s height.
Back