Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon.

Pages: 1-

PHP & XML & JS

Name: OP 2012-11-21 9:52

hello /prog/, I'm a bit of a beginner at PHP and I'm stuck at an issue that I'm not even sure i can explain, the thing is I got a XML file working as a "database" where i store info, this info is divided in sections, each section having two separate fields (lets call them fieldA and fieldB);

this then is shown in a php page in a form using option tags, using php code i made it show the 3 sections, now in a separate option tag i wanted it to specifically show all the fieldAs entries of the section that was selected in the first option tag.

I'm not sure if i explained it well enough.

Name: Anonymous 2012-11-21 10:07

You picked pretty much the most boring and shitty languages in existence.

Name: Anonymous 2012-11-21 10:12

my apologies, I'm a beginner

Name: Anonymous 2012-11-21 10:21

>>3

Why are you doing this in XML? MySQL could make this task very easy.

Name: Anonymous 2012-11-21 10:25

>>4
What the fuck is wrong with you?

Name: Anonymous 2012-11-21 10:30

PHP is shit, XML is shit, Javashit is shit, web ``programming'' is fucking shit and so are you.

Name: Anonymous 2012-11-21 10:46

D:

Name: Anonymous 2012-11-21 10:48

PHP is like a teen age girl with low self-esteem and questionable morals.

Name: Anonymous 2012-11-21 11:06

better switch to RUBY ON RAILS

Name: Anonymous 2012-11-21 11:19

The funny thing is that we expert programmers use a php piece of shit as our board.

I'm working on a perl version. Expect it near middle 2013.
It will be shit too, but at least is not PHP

Name: Anonymous 2012-11-21 11:21

>>10
Don't you think every /anus/rammer has written a Shiitchan replacement in some non-PHP or other?
We'll never use it. document.location.href is inexplicably our home.

Name: Anonymous 2012-11-21 13:34

>>10
Implying people give a fuck about the language your web app is written in.

Name: Anonymous 2012-11-21 13:56

>>10
It's cute that you think Perl is materially better than PHP.
Even if it were, Kareha already exists.

Name: Anonymous 2012-11-21 14:00

>>10
I didn't know Perl, but as soon as I know it doesn't even have proper parameter list when defining functions, I know it's shit.

I mean, wtf?

Name: Anonymous 2012-11-21 14:19

>>14
There are parameter lists in perl5 but you're recommended against using them because they may not act how you intend for them to act. You don't need them because you can just use ``@_'' quite easily.

Nevertheless, perl is superior to Pretty Horrible Programming.

There are also parameter lists in perl6, which act the way you think/want.

Name: Anonymous 2012-11-21 14:50

>>12
>implying
web app
Get out and never return.

Name: Anonymous 2012-11-21 21:03

Flat file as a database is just the completely wrong way to do anything. Period.

Every language has ways to connect to databases(staying out of the "PHP is crap, web programming is crap" fuckery going down here), so learn how to achieve that before trying to do anything else.

Name: Anonymous 2012-11-21 21:21

Use Common Lisp for the backend and SQLite for the DB.

Don't change these.
Name: Email:
Entire Thread Thread List