[PHP] Re: Help with arrays

2004-03-12 Thread Elliot J. Balanza
Thank you Michael... That did the trick :D thank you very very much, it took me three days... and now it seems so damn easy. vamp "Michael Nolan" <[EMAIL PROTECTED]> escribió en el mensaje news:[EMAIL PROTECTED] > Elliot J. Balanza wrote: > > I need to make a query to a MySQL database that only h

[PHP] Re: Help with arrays

2004-03-12 Thread Elliot J. Balanza
I have tried several combinations, including foreach, do whiles. This works when i submit the values one by one, but when i try to automatize it it wont work. Thanks mysql_select_db($database_MBTTIENDA, $MBTTIENDA); $query_prefsname = "SELECT Pref_name FROM mtmbt_prefs"; $prefsname = mysql_query($

[PHP] Re: Help with arrays

2004-03-12 Thread memoimyself
Hello Elliot, On 11 Mar 2004 at 23:55, Elliot J. Balanza wrote: > I need to make a query to a MySQL database that only has two fields, name & > value. That I can do. > > Then I need to store the values i receive in an array in the form of: > > $variable['name'] = value; > > But haven't been ab

[PHP] Re: Help with arrays

2004-03-12 Thread Michael Nolan
Elliot J. Balanza wrote: I need to make a query to a MySQL database that only has two fields, name & value. That I can do. Then I need to store the values i receive in an array in the form of: $variable['name'] = value; But haven't been able to do it neither with a foreach nor with a do while...

Re: [PHP] Re: help with arrays

2002-05-16 Thread Dan Hardiker
>> This is a basic question but I'm a basic fellow. If I have an array >> >> $timespread = array("12am-01am"=>0); >> $timespread["01am-02am"]=0; >> $timespread["02am-03am"]=0; etc >> >> Using $time which is a number, I want to add 1 to the value of >> $timespread[$time] without changing the key s

[PHP] Re: help with arrays

2002-05-16 Thread Martin Wickman
Josh Edwards wrote: > This is a basic question but I'm a basic fellow. If I have an array > > $timespread = array("12am-01am"=>0); > $timespread["01am-02am"]=0; > $timespread["02am-03am"]=0; etc > > Using $time which is a number, I want to add 1 to the value of > $timespread[$time] without chan