[advanced search]
Results from the most recent live auction are here.
34 members in the live chat room. Join Chat!
Register Rules & FAQ NP$ Store Active Threads Mark Forums Read
Go Back   NamePros.Com > Design and Development > Programming > CODE
User Name
Password

Old 03-31-2004, 02:45 AM   · #1
wiedzim
First Time Poster!
 
Trader Rating: (0)
Join Date: Mar 2004
Posts: 1
NP$: 0.00 (Donate)
wiedzim is an unknown quantity at this point
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 .....

It's possible, thank you very much

wiedzim


Please register or log-in into NamePros to hide ads
wiedzim is offline   Reply With Quote
Closed Thread

NamePros is a revenue sharing forum.

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


Site Sponsors
Special Offer Special Offer http://www.mobisitetrader.com/
Advertise your business at NamePros
All times are GMT -7. The time now is 05:57 PM.


Powered by: vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 2.4.0