She ain't movin'. Serenity's not movin'.

Kaylee ,'Out Of Gas'


Buffistechnology 3: "Press Some Buttons, See What Happens."

Got a question about technology? Ask it here. Discussion of hardware, software, TiVos, multi-region DVDs, Windows, Macs, LINUX, hand-helds, iPods, anything tech related. Better than any helpdesk!


§ ita § - May 21, 2008 10:37:26 am PDT #6298 of 25501
Well not canonically, no, but this is transformative fiction.

What do you want the resulting array to look like? I'd probably have the assignment in the loop look like

$progTable[$progArr['program_id']]=$progTable[$progArr['program_name']];

In terms of learning what I've just done to arrays, I do a lot of print_r($array) so that I can see what got put where, and how I can get it out again. It's very powerful, but damn it's easy to slip something in and not know how to get it back out.


Jon B. - May 21, 2008 10:42:56 am PDT #6299 of 25501
A turkey in every toilet -- only in America!

$progTable['program_id']=$progTable['program_name'];

Ahhh, yeah, I think that should work! Thanks. I knew I just needed another pair of eyes. Now if my server would only stop acting up, I could test this...


§ ita § - May 21, 2008 10:47:23 am PDT #6300 of 25501
Well not canonically, no, but this is transformative fiction.

No! That's not going to work! I'm such a ditz. Let me fix it...gimme a couple seconds, though, because work calls.


§ ita § - May 21, 2008 10:51:07 am PDT #6301 of 25501
Well not canonically, no, but this is transformative fiction.

Here you go: I neglected to actually put anything from the query result in there, in my rushedness:

$progTable[$progArr['program_id']]=$progTable[$progArr['program_name']];


Gudanov - May 21, 2008 10:51:33 am PDT #6302 of 25501
Coding and Sleeping

Wouldn't it be?

$progTable[$progArr['program_id']]=$progArr['program_name'];

My PHP is rusty though, I don't use it very much.


Jon B. - May 21, 2008 10:54:23 am PDT #6303 of 25501
A turkey in every toilet -- only in America!

I'm also a ditz for not immediately noticing the error! I think Gud's got it.


Jon B. - May 21, 2008 10:59:57 am PDT #6304 of 25501
A turkey in every toilet -- only in America!

Yep. It's working how I want it. Thanks guys!


§ ita § - May 21, 2008 11:16:59 am PDT #6305 of 25501
Well not canonically, no, but this is transformative fiction.

It's a wonder this board works at all.

I need to keep my fixings asymmetrical.

Or stop trying to work.


Gudanov - May 21, 2008 11:19:03 am PDT #6306 of 25501
Coding and Sleeping

It's a wonder this board works at all.

You do an awesome job ita!

I still feel guilty about dropping out of the development effort, I just got overloaded.


Sean K - May 21, 2008 3:40:20 pm PDT #6307 of 25501
You can't leave me to my own devices; my devices are Nap and Eat. -Zenkitty

So. Windows seems to have, for the moment, stopped working on my MacBook Pro.

I may have just decided to wipe it from my drive.