Unstoppable Domains โ€” Get your daily AI drops report

How I fill javascript array with php variables?

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
•••
The views expressed on this page by users and staff are their own, not those of NamePros.
GoDaddyGoDaddy
Dynadot โ€” .com TransferDynadot โ€” .com Transfer
Appraise.net
Escrow.com
Spaceship
Rexus Domain
CryptoExchange.com
Domain Recover
CatchDoms
DomDB
NameFit
  • The sidebar remains visible by scrolling at a speed relative to the pageโ€™s height.
Back