| | |||||
| ||||||||
| CODE This forum is for posting code snippets and example scripts that aren't quite tutorials, but could be useful for others. You may post code snippets and/or completed scripts that you've written and want to share here. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| First Time Poster! Join Date: Mar 2004
Posts: 1
![]() | How I fill javascript array with php variables? 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 ..... ????: NamePros.com http://www.namepros.com/code/25219-how-i-fill-javascript-array-php.html It's possible, thank you very much wiedzim |
| |