Eevo Theme
   [ Main Page ][ First New  ]

PHP question
Posted by rub on Wednesday May 2, 2001 @ 10:22am
>>reply ][ rating +0  ]

Hey guys.. having a problem with some PHP code: class fields_object
{
var $fieldname;
var $fieldlen;
var $fieldflags;
var $fieldtype;

function fields_object($result,$x)
{
$this->fieldname =mysql_field_name($result,$x);
$this->fieldlen =mysql_field_len($result,$x);
$this->fieldflags =mysql_field_flags($result,$x);
$this->fieldtype =mysql_field_type($result,$x);

}
}



$sql="SELECT * FROM $tabletype";
if (! $result=mysql_query($sql)) { db_error("001-1","$sql","$PHP_SELF",mysql_errno(), mysql_error()); }
$numfields=mysql_num_fields($result);
for ($x=0; $x<$numfields; $x++)
{
$objectname="$tabletype"."fields";
$$objectname[$x]->fieldname="d";
for ($y=0; $y<$numfields; $y++) {
echo $y.".".$$objectname[$y]->fieldname." ";
}
echo "<br>";
}

I am using Apache for Windows and having the oddest fucking error here. I haven't been able to find anything from any documentation. Slaps that nito a file and set $tabletype to be a table with 10 or so fields.

I've run it against different tables and it does not break consistently. All I can think is that I have pushed PHP, or at least the Winbloze version, to the limit. That or I am just not understanding something here. Personally I believe the latter, but it would be cool if it was the former.

BTW db_error is a custom function.

<< PHP answer
Posted by kodrik on Wednesday May 2, 2001 @ 05:39pm
>>reply ][ rating +0  ]

>>$objectname="$tabletype"."fields";
$$objectname[$x]->fieldname="d"; <<

I see an error in those two lines:

$$objectname[$x]
means
$($objectname[$x])
and not
$($objectname)[$x]) as you clearly intent

Actually $$objectname[2]
holds the value of the third letter of $objectname.

if $objectname="bob"
$$objectname[1] is not the same variable as $bob[1].

You could maybe use a 2-d array:
$2darray[$objectname][$x];

<< Re: PHP answer
Posted by voltaic on Thursday May 3, 2001 @ 12:19am
>>reply ][ rating +0  ]

You could maybe use a 2-d array:
$2darray[$objectname][$x];

i was writing a little web page tonight that houses the data internally (so i don't need an sql server behind it) in a fucking 6-d array. damn that's bad assed. heheh

i did it with a wiffle ball bat!


<< Re: PHP answer
Posted by Stealth on Thursday May 3, 2001 @ 09:37am
>>reply ][ rating +0  ]

You could maybe use a 2-d array:
$2darray[$objectname][$x];

i was writing a little web page tonight that houses the data internally (so i don't need an sql server behind it) in a fucking 6-d array. damn that's bad assed. heheh


6-d??? im not sure i understand that.. a six dimensional array.. you wanna kind of explain that??

<< Re: PHP answer
Posted by voltaic on Thursday May 3, 2001 @ 10:13am
>>reply ][ rating +0  ]

sure. 6-d = six dimensions.

so here's a 1-d array with three elements:
$bob[ 0 ] = "something 1";
$bob[ 1 ] = "something 2";
$bob[ 2 ] = "something 3";

a 2-d array:
$bob[ 0 ][ 0 ] = "something 0 0";
$bob[ 0 ][ 1 ] = "something 0 1";
$bob[ 0 ][ 2 ] = "something 0 2";
$bob[ 1 ][ 0 ] = "something 1 0";
$bob[ 1 ][ 1 ] = "something 1 1";
$bob[ 1 ][ 2 ] = "something 1 2";
$bob[ 2 ][ 0 ] = "something 2 0";
$bob[ 2 ][ 1 ] = "something 2 1";
$bob[ 2 ][ 2 ] = "something 2 2";

so i had a 6-d array"
$bob[ 0 ][ 0 ][ 0 ][ 0 ][ 0 ][ 0 ] = "whatever";
etc.etc.

i did it with a wiffle ball bat!


<< Re: PHP answer
Posted by Krux on Thursday May 3, 2001 @ 11:48am
>>reply ][ rating +0  ]

sure. 6-d = six dimensions.

so here's a 1-d array with three elements:
$bob[ 0 ] = "something 1";
$bob[ 1 ] = "something 2";
$bob[ 2 ] = "something 3";

a 2-d array:
$bob[ 0 ][ 0 ] = "something 0 0";
$bob[ 0 ][ 1 ] = "something 0 1";
$bob[ 0 ][ 2 ] = "something 0 2";
$bob[ 1 ][ 0 ] = "something 1 0";
$bob[ 1 ][ 1 ] = "something 1 1";
$bob[ 1 ][ 2 ] = "something 1 2";
$bob[ 2 ][ 0 ] = "something 2 0";
$bob[ 2 ][ 1 ] = "something 2 1";
$bob[ 2 ][ 2 ] = "something 2 2";

so i had a 6-d array"
$bob[ 0 ][ 0 ][ 0 ][ 0 ][ 0 ][ 0 ] = "whatever";
etc.etc.

I would have used an array of arrays...

$arrayusers = array(
"krux" => array("name" => "jeff", "email" => "krux@thcnet.net", "signature" => "- k", "etc..."),
"voltaic" => array("name" => "mark", "email" => "voltaic@thcnet.net", "signature" => "sp0rk!", "etc..."),
"luser" => array("name" => "lamer", "email" => "bigman7432@aol.com", "signature" => "somebody help me.", "etc...")
);

-k


<< Re: PHP answer
Posted by kodrik on Thursday May 3, 2001 @ 02:21pm
>>reply ][ rating +0  ]

>>I would have used an array of arrays... <<

An array of an array is still a simple multidimensional array. It's just one way to use string as an indice. Just makes the code more readable.

In your example, it creates a 2d array.
$arrayname["krux"]["name"] would hold the value of Jeff.

-kod

<< Re: PHP answer
Posted by voltaic on Thursday May 3, 2001 @ 02:05pm
>>reply ][ rating +0  ]

thanks for the php 101 class. i did use multiple embedded arrays to create them. but why confuse stealth? he's bad enough not even using the fucking preview button that was motivated mostly by his fucking posting.

in fact mine were more like this:

$inv[ "nct01" ][ "rack1" ] = array( "name" => "K1SR-1",
"laptop1" => array( "name" => "K1SL-1",
"hpnum" => "TW93800011",
"model" => "XE-2" ),
"laptop2" => array( "name" => "K1SL-2",
"hpnum" => "TW93704515",
"model" => "XE-2" ),
etc.etc.

now before every self-educated jerk off on thc points it out, yes the above array is only 4-d. the 6-d one is entirely too ugly to post into a message here. but assume that those calls to "array( blah blah ) are nested to 6 levels. i guess i could be a real chump and claim seven levels with the justification that any strings on the sixth level are (internally) arrays in php. except that i don't know if php does strings that way, and plus i don't really fucking care. especially right now.

i did it with a wiffle ball bat!


<< Re: PHP answer
Posted by Stealth on Thursday May 3, 2001 @ 02:13pm
>>reply ][ rating +0  ]

thanks for the php 101 class. i did use multiple embedded arrays to create them. but why confuse stealth? he's bad enough not even using the fucking preview button that was motivated mostly by his fucking posting.

in fact mine were more like this:

$inv[ "nct01" ][ "rack1" ] = array( "name" => "K1SR-1",
"laptop1" => array( "name" => "K1SL-1",
"hpnum" => "TW93800011",
"model" => "XE-2" ),
"laptop2" => array( "name" => "K1SL-2",
"hpnum" => "TW93704515",
"model" => "XE-2" ),
etc.etc.

now before every self-educated jerk off on thc points it out, yes the above array is only 4-d. the 6-d one is entirely too ugly to post into a message here. but assume that those calls to "array( blah blah ) are nested to 6 levels. i guess i could be a real chump and claim seven levels with the justification that any strings on the sixth level are (internally) arrays in php. except that i don't know if php does strings that way, and plus i don't really fucking care. especially right now.

ahh.. i see the why now.. and please.. confuse me.. this is the only type of schooling i get, since we can't sit down at carrows anymore and toss around things over coffee..

always looking for an interesting thing to learn.. and like i had asked.. this will be a file in the end? or will it always reside in memory, and if your hardcoding it.. how would there be an easy addtion and stuff by other users?

<< Re: PHP answer
Posted by voltaic on Thursday May 3, 2001 @ 05:32pm
>>reply ][ rating +0  ]

ahh.. i see the why now.. and please.. confuse me.. this is the only type of schooling i get, since we can't sit down at carrows anymore and toss around things over coffee..

go to a university for a lesson.

always looking for an interesting thing to learn.. and like i had asked.. this will be a file in the end? or will it always reside in memory, and if your hardcoding it.. how would there be an easy addtion and stuff by other users?

it is in a file (a php file in fact) and is read into memory like everything else in the whole fucking world on a webserver. fuck other people adding to it.

i did it with a wiffle ball bat!


<< Re: PHP answer
Posted by Krux on Thursday May 3, 2001 @ 02:12pm
>>reply ][ rating +0  ]

thanks for the php 101 class.

Always glad to help. I know you're kind of new to the whole programming thing still. If you're lucky I'll explain to you how goto works. ;)

i did use multiple embedded arrays to create them. but why confuse stealth? he's bad enough not even using the fucking preview button that was motivated mostly by his fucking posting.

fucking true, he should fucking use the fucking preview fucking button that was fucking put fucking there so he could fucking correct his fucking spelling fucking errors.

-k


<< Re: PHP answer
Posted by voltaic on Thursday May 3, 2001 @ 05:31pm
>>reply ][ rating +0  ]

especially since he fucking kept talking about it saying he'd fucking use it so we wouldn't have to read his fucking horrible english.

i did it with a wiffle ball bat!


<< Re: PHP answer
Posted by Stealth on Friday May 4, 2001 @ 07:18am
>>reply ][ rating +0  ]

especially since he fucking kept talking about it saying he'd fucking use it so we wouldn't have to read his fucking horrible english.

i am using it.. blah. the funny thing is it says your word "english" is wrong.. hehehe

<< Re: PHP answer
Posted by voltaic on Friday May 4, 2001 @ 08:53am
>>reply ][ rating +0  ]

probably checks capitalization of proper nouns, i dunno.

i did it with a wiffle ball bat!


<< Re: PHP answer
Posted by Stealth on Friday May 4, 2001 @ 09:39am
>>reply ][ rating +0  ]

probably checks capitalization of proper nouns, i dunno.


that would be dumb...

<< Re: PHP answer
Posted by Krux on Friday May 4, 2001 @ 11:20am
>>reply ][ rating +0  ]

probably checks capitalization of proper nouns, i dunno.

that would be dumb...

It does so that, since technically the proper spelling of America is not america, and after all this is America Jack!

-k


<< Re: PHP answer
Posted by Stealth on Friday May 4, 2001 @ 12:12pm
>>reply ][ rating +0  ]

probably checks capitalization of proper nouns, i dunno.

that would be dumb...

It does so that, since technically the proper spelling of America is not america, and after all this is America Jack!


its a spell checker, not a grammer checker

<< Re: PHP answer
Posted by Krux on Friday May 4, 2001 @ 02:11pm
>>reply ][ rating +0  ]

probably checks capitalization of proper nouns, i dunno.

that would be dumb...

It does so that, since technically the proper spelling of America is not america, and after all this is America Jack!


its a spell checker, not a grammer checker

You didn't even spell grammar correctly, nevermind that I wasn't even talking about grammar. You need to retake your grade school english class.

-k


<< Re: PHP answer
Posted by Stealth on Friday May 4, 2001 @ 02:23pm
>>reply ][ rating +0  ]

probably checks capitalization of proper nouns, i dunno.

that would be dumb...

It does so that, since technically the proper spelling of America is not america, and after all this is America Jack!


its a spell checker, not a grammer checker

You didn't even spell grammar correctly, nevermind that I wasn't even talking about grammar. You need to retake your grade school english class.


i should.. but i probably wouldn't pass.. then i wonder how that would effect everything else i've done since then.

<< Re: PHP answer
Posted by voltaic on Friday May 4, 2001 @ 03:29pm
>>reply ][ rating +0  ]

there comes a point where something just isn't as funny any more and really start grating on a niggah.

i did it with a wiffle ball bat!


<< Re: PHP answer
Posted by Stealth on Saturday May 5, 2001 @ 09:44am
>>reply ][ rating +0  ]

there comes a point where something just isn't as funny any more and really start grating on a niggah.

i can see that.. it seems to be effecting a few people..

- Stealth


<< Re: PHP answer
Posted by voltaic on Friday May 4, 2001 @ 12:50pm
>>reply ][ rating +0  ]

capitalization is a spelling, not a grammar, issue.

i did it with a wiffle ball bat!


<< Re: PHP answer
Posted by Ghostalker on Friday May 4, 2001 @ 12:32pm
>>reply ][ rating +0  ]

its a spell checker, not a grammer checker

And apparently not one you take advantage of. Can Stealths threads be forced to be spell checked??


<< Re: PHP answer
Posted by Stealth on Friday May 4, 2001 @ 02:21pm
>>reply ][ rating +0  ]

its a spell checker, not a grammer checker

And apparently not one you take advantage of. Can Stealths threads be forced to be spell checked??

What was wrong with that post?.. never mind.. i found it

<< Re: PHP answer
Posted by Ghostalker on Friday May 4, 2001 @ 02:46pm
>>reply ][ rating +0  ]

What was wrong with that post?.. never mind.. i found it

See now was that so hard?? Someone give him a biscuit.


<< Re: PHP answer
Posted by voltaic on Friday May 4, 2001 @ 12:50pm
>>reply ][ rating +0  ]

i've asked krux to do it, seriously.

i did it with a wiffle ball bat!


<< Re: PHP answer
Posted by Krux on Friday May 4, 2001 @ 02:15pm
>>reply ][ rating +0  ]

i've asked krux to do it, seriously.

I'll add a system configurable option to force preview mode. I'm not even done with the preview code, just got it to a working point to find out what needs to be fixed.

-k


<< Re: PHP answer
Posted by Stealth on Friday May 4, 2001 @ 02:29pm
>>reply ][ rating +0  ]

i've asked krux to do it, seriously.

I'll add a system configurable option to force preview mode. I'm not even done with the preview code, just got it to a working point to find out what needs to be fixed.

i even went to the user options today to check it so i could turn it on (since i still just hit post of out habit).. and it isn't there.. so i'll try to hit preview instead of post..

- Stealth


<< Re: PHP answer
Posted by Krux on Friday May 4, 2001 @ 02:39pm
>>reply ][ rating +0  ]

i've asked krux to do it, seriously.

I'll add a system configurable option to force preview mode. I'm not even done with the preview code, just got it to a working point to find out what needs to be fixed.

i even went to the user options today to check it so i could turn it on (since i still just hit post of out habit).. and it isn't there.. so i'll try to hit preview instead of post..

Didn't I just say I didn't do that yet?

-k


<< Re: PHP answer
Posted by LooGie on Friday May 4, 2001 @ 03:02pm
>>reply ][ rating +0  ]

i've asked krux to do it, seriously.

I'll add a system configurable option to force preview mode. I'm not even done with the preview code, just got it to a working point to find out what needs to be fixed.

i even went to the user options today to check it so i could turn it on (since i still just hit post of out habit).. and it isn't there.. so i'll try to hit preview instead of post..

Didn't I just say I didn't do that yet?

don't confuse him Krux. It's hard enough explaining how to make links with http: in front.

LooGie
<marquee>I FISTED YOUR MOM</marquee>
The Stuff Tabernacle


<< Re: PHP answer
Posted by Stealth on Saturday May 5, 2001 @ 09:43am
>>reply ][ rating +0  ]

i've asked krux to do it, seriously.

I'll add a system configurable option to force preview mode. I'm not even done with the preview code, just got it to a working point to find out what needs to be fixed.

i even went to the user options today to check it so i could turn it on (since i still just hit post of out habit).. and it isn't there.. so i'll try to hit preview instead of post..

Didn't I just say I didn't do that yet?

don't confuse him Krux. It's hard enough explaining how to make links with http: in front.

i think you have me confused with chief.. i can make my links properly, thank you very much.

- Stealth


previous post ]

<< Re: PHP answer
Posted by LooGie on Saturday May 5, 2001 @ 10:45am
>>reply ][ rating +0  ]

i think you have me confused with chief.. i can make my links properly, thank you very much.

I never said it was hard for you...I was just talking about in general...for THCheeseNet users.
But yah, I was referring to Chief. (no offense Chief)

LooGie
<marquee>I FISTED YOUR MOM</marquee>
The Stuff Tabernacle


previous post ]

<< Re: PHP answer
Posted by LooGie on Friday May 4, 2001 @ 12:23pm
>>reply ][ rating +0  ]

probably checks capitalization of proper nouns, i dunno.

that would be dumb...

It does so that, since technically the proper spelling of America is not america, and after all this is America Jack!


its a spell checker, not a grammer checker

I dont think that can even be justified with a retort.

LooGie
From the slums of cyberspace
The Stuff Tabernacle


<< Re: PHP answer
Posted by LooGie on Thursday May 3, 2001 @ 12:19pm
>>reply ][ rating +0  ]

that's bad ass, Fuck arrays though. I suck at them. I really need to learn them more, I just never really know where to fit them in.

LooGie
From the slums of cyberspace
The Stuff Tabernacle


<< Re: PHP answer
Posted by Stealth on Thursday May 3, 2001 @ 10:22am
>>reply ][ rating +0  ]

sure. 6-d = six dimensions.

so here's a 1-d array with three elements:
$bob[ 0 ] = "something 1";
$bob[ 1 ] = "something 2";
$bob[ 2 ] = "something 3";

a 2-d array:
$bob[ 0 ][ 0 ] = "something 0 0";
$bob[ 0 ][ 1 ] = "something 0 1";
$bob[ 0 ][ 2 ] = "something 0 2";
$bob[ 1 ][ 0 ] = "something 1 0";
$bob[ 1 ][ 1 ] = "something 1 1";
$bob[ 1 ][ 2 ] = "something 1 2";
$bob[ 2 ][ 0 ] = "something 2 0";
$bob[ 2 ][ 1 ] = "something 2 1";
$bob[ 2 ][ 2 ] = "something 2 2";

so i had a 6-d array"
$bob[ 0 ][ 0 ][ 0 ][ 0 ][ 0 ][ 0 ] = "whatever";
etc.etc.

damn.. what the hell are you going to use that for?? i assume its easier data managemnet and sorting and what not.. but damn.. thats big

<< Re: PHP answer
Posted by voltaic on Thursday May 3, 2001 @ 02:04pm
>>reply ][ rating +0  ]

like i said, i'm putting in columns and rows of data without an sql database. it's for tecnotrain.com actually.

i did it with a wiffle ball bat!


<< Re: PHP answer
Posted by Stealth on Thursday May 3, 2001 @ 02:10pm
>>reply ][ rating +0  ]

like i said, i'm putting in columns and rows of data without an sql database. it's for tecnotrain.com actually.


sweet.. beeing that big, will it take up a large amount of system memory?? is that a consideration doing something like this? or would the array end up being stored on the HD and sorted off that..

<< Re: PHP answer
Posted by voltaic on Thursday May 3, 2001 @ 05:31pm
>>reply ][ rating +0  ]

guess. here's a clue:

when the file is not in use, it is stored on the hard drive. that answers part b. when the file is in use, it is read into memory so the php engine can fuck with it. that answers part a. any more questions?

by the way 9 things came in the mail today, 7 are yours. wtf?

i did it with a wiffle ball bat!


<< Re: PHP answer
Posted by Stealth on Friday May 4, 2001 @ 07:15am
>>reply ][ rating +0  ]

guess. here's a clue:

when the file is not in use, it is stored on the hard drive. that answers part b. when the file is in use, it is read into memory so the php engine can fuck with it. that answers part a. any more questions?

How big is this 6d array going to be then?

by the way 9 things came in the mail today, 7 are yours. wtf?

I've geving almost everyone a change of address.. im not sure what else there is really..

<< Re: PHP answer
Posted by Grendel on Friday May 4, 2001 @ 01:08pm
>>reply ][ rating +0  ]

I've geving almost everyone a change of address.. im not sure what else there is really..

Just fill out the one friggin card available from the USPO. That way any mail headed for Krux's gets rerouted at the PO and you cover all incoming mail.

<< Re: PHP answer
Posted by Krux on Friday May 4, 2001 @ 02:10pm
>>reply ][ rating +0  ]

I've geving almost everyone a change of address.. im not sure what else there is really..

Just fill out the one friggin card available from the USPO. That way any mail headed for Krux's gets rerouted at the PO and you cover all incoming mail.

No fuck all that...

-k


<< Re: PHP answer
Posted by Stealth on Friday May 4, 2001 @ 02:20pm
>>reply ][ rating +0  ]

I've geving almost everyone a change of address.. im not sure what else there is really..

Just fill out the one friggin card available from the USPO. That way any mail headed for Krux's gets rerouted at the PO and you cover all incoming mail.

No fuck all that...


i almost did that.. but i didn't want anything of his to come to me.... i had considered it.. maybe i still will

<< Re: PHP answer
Posted by grayantimatter on Friday May 4, 2001 @ 09:12pm
>>reply ][ rating +0  ]

i almost did that.. but i didn't want anything of his to come to me.... i had considered it.. maybe i still will

pick one up....there is an option on the card:
- Individual
- Entire Household

Chose Entire Household. Hilarity and hijinks soon to follow....

<< Re: PHP answer
Posted by LooGie on Friday May 4, 2001 @ 11:05pm
>>reply ][ rating +0  ]

http://www.usps.com give it whirl..it's called the fucking internet

LooGie
<marquee>I FISTED YOUR MOM</marquee>
The Stuff Tabernacle


<< Re: PHP answer
Posted by grayantimatter on Friday May 4, 2001 @ 11:09pm
>>reply ][ rating +0  ]

http://www.usps.com give it whirl..it's called the fucking internet

the FUCKING internet? thats the version created by Ron Jeremy right? fuck this al gore internet....

<< Re: PHP answer
Posted by Krux on Friday May 4, 2001 @ 02:38pm
>>reply ][ rating +0  ]

I've geving almost everyone a change of address.. im not sure what else there is really..

Just fill out the one friggin card available from the USPO. That way any mail headed for Krux's gets rerouted at the PO and you cover all incoming mail.

No fuck all that...


i almost did that.. but i didn't want anything of his to come to me.... i had considered it.. maybe i still will

Uh.. only stuff addresed to your name will go to you..

-k


<< Re: PHP answer
Posted by Krux on Thursday May 3, 2001 @ 05:33pm
>>reply ][ rating +0  ]

guess. here's a clue:

when the file is not in use, it is stored on the hard drive. that answers part b. when the file is in use, it is read into memory so the php engine can fuck with it. that answers part a. any more questions?

by the way 9 things came in the mail today, 7 are yours. wtf?

I'm going to start charging him rent to keep his mail here.

-k


<< Re: PHP answer
Posted by Krux on Thursday May 3, 2001 @ 02:06pm
>>reply ][ rating +0  ]

like i said, i'm putting in columns and rows of data without an sql database. it's for tecnotrain.com actually.

cool!

-k


<< Re: PHP answer
Posted by kodrik on Thursday May 3, 2001 @ 12:49am
>>reply ][ rating +0  ]

A 6-d array is pretty cool, especially with php where you don't have to worry about types.

-kod

<< Re: PHP answer
Posted by rub on Wednesday May 2, 2001 @ 06:13pm
>>reply ][ rating +0  ]

That is exactly the problem. Ahh... now my headache will go away.

thanks ced

<< Re: PHP answer
Posted by Anonymous Bastard on Wednesday May 2, 2001 @ 06:31pm
>>reply ][ rating +0  ]

Sad...

<< Re: PHP answer
Posted by LooGie on Wednesday May 2, 2001 @ 10:24pm
>>reply ][ rating +0  ]

Sad...

haha, what a bastard.


<< Re: PHP question
Posted by voltaic on Wednesday May 2, 2001 @ 10:50am
>>reply ][ rating +0  ]

what in particular is the error you are getting? on the surface i don't see anything wrong with your code.

i did it with a wiffle ball bat!


<< Re: PHP question
Posted by rub on Wednesday May 2, 2001 @ 11:10am
>>reply ][ rating +0  ]

what in particular is the error you are getting? on the surface i don't see anything wrong with your code.

Bitch I said try it! heheh.. nah, here is what I get (assuming $numfields=22):

0.d 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21.
0.d 1.d 2. 3. 4. 5. 6. 7. 8. 9. 10.d 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21.
0.d 1.d 2.d 3. 4. 5. 6. 7. 8. 9. 10.d 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21.
0.d 1.d 2.d 3. 4. 5. 6. 7. 8. 9. 10.d 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21.
0.d 1.d 2.d 3. 4.d 5. 6. 7. 8. 9.d 10.d 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21.
0.d 1.d 2.d 3. 4.d 5.d 6. 7. 8. 9.d 10.d 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21.
0.d 1.d 2.d 3. 4.d 5.d 6.d 7. 8. 9.d 10.d 11. 12.d 13. 14. 15. 16. 17. 18. 19. 20. 21.
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8. 9.d 10.d 11. 12.d 13. 14. 15. 16. 17. 18. 19. 20. 21.
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8.d 9.d 10.d 11. 12.d 13. 14. 15. 16. 17. 18. 19. 20. 21.
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8.d 9.d 10.d 11. 12.d 13. 14. 15. 16. 17. 18. 19. 20. 21.
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8.d 9.d 10.d 11. 12.d 13. 14. 15. 16. 17. 18. 19. 20. 21.
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8.d 9.d 10.d 11.d 12.d 13. 14. 15. 16. 17. 18. 19. 20. 21.
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8.d 9.d 10.d 11.d 12.d 13. 14. 15. 16. 17. 18. 19. 20. 21.
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8.d 9.d 10.d 11.d 12.d 13.d 14.d 15.d 16.d 17.d 18.d 19.d 20.d 21.d
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8.d 9.d 10.d 11.d 12.d 13.d 14.d 15.d 16.d 17.d 18.d 19.d 20.d 21.d
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8.d 9.d 10.d 11.d 12.d 13.d 14.d 15.d 16.d 17.d 18.d 19.d 20.d 21.d
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8.d 9.d 10.d 11.d 12.d 13.d 14.d 15.d 16.d 17.d 18.d 19.d 20.d 21.d
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8.d 9.d 10.d 11.d 12.d 13.d 14.d 15.d 16.d 17.d 18.d 19.d 20.d 21.d
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8.d 9.d 10.d 11.d 12.d 13.d 14.d 15.d 16.d 17.d 18.d 19.d 20.d 21.d
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8.d 9.d 10.d 11.d 12.d 13.d 14.d 15.d 16.d 17.d 18.d 19.d 20.d 21.d
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8.d 9.d 10.d 11.d 12.d 13.d 14.d 15.d 16.d 17.d 18.d 19.d 20.d 21.d
0.d 1.d 2.d 3. 4.d 5.d 6.d 7.d 8.d 9.d 10.d 11.d 12.d 13.d 14.d 15.d 16.d 17.d 18.d 19.d 20.d 21.d


now what the fuck is that all about?!

<< Re: PHP question
Posted by voltaic on Wednesday May 2, 2001 @ 12:57pm
>>reply ][ rating +0  ]

it looks like it's doing what you told it to. try instead of setting fieldname="d" to just have it print out the actual field name. i'm thinking perhaps it's only running that little nested loop on fields of certain types or which do not have null values in the sql results. on the other hand, you only posted partial code plus no idea what the table looks like. hehe

i did it with a wiffle ball bat!


<< Re: PHP question
Posted by LooGie on Wednesday May 2, 2001 @ 10:43am
>>reply ][ rating +0  ]

You know, Cold Fusion is on the come up. I think you should learn that, and ditch PHP. And then visit http://stuff.fiax.net to REALLY see it in action :)
Sorry, don't know jack about PHP. It's against my religion.

LooGie
From the slums of cyberspace
The Stuff Tabernacle


<< Re: PHP question
Posted by rub on Wednesday May 2, 2001 @ 11:13am
>>reply ][ rating +0  ]

I never really checked out cold fusion. I am just getting into PHP though so I really dont want to abandon it just yet.

So let the arguments begin...

ColdFusion versus PHP

Which is better and why?

<< Re: PHP question
Posted by LooGie on Wednesday May 2, 2001 @ 02:56pm
>>reply ][ rating +0  ]

I never really checked out cold fusion. I am just getting into PHP though so I really dont want to abandon it just yet.

So let the arguments begin...

ColdFusion versus PHP

Which is better and why?

I'd have to agree with Volt when it comes right down to it. PHP seems a little slower on alot of levels, but then again, it's free, works on all platforms. Is PHP server free? I imagine that it is.
I really enjoy working with Cold Fusion. Shit, I fucking dream in code now, and that's the god's honest truth. Stupid shit, like when I was writing my forums..I would wake up all hyped up about sitting down and writing code :)

LooGie
From the slums of cyberspace
The Stuff Tabernacle


<< Re: PHP question
Posted by voltaic on Wednesday May 2, 2001 @ 04:00pm
>>reply ][ rating +0  ]

i use to dream in code. now i have visual code dreams... say for instance i'm working out how to put a string through some function and get it back with stuff done to it (like a spell checker). in my dream, i will be holding this big plank of wood or something with a big ass string on it (the string is usually something degenerate and hedonistic) and i will walk it through a big ass sewer-size pipe. hence, piping a string. goddamn my mind is sad.

i did it with a wiffle ball bat!


<< Re: PHP question
Posted by LooGie on Thursday May 3, 2001 @ 12:15pm
>>reply ][ rating +0  ]

I came up with my site Stuff Tabernacle in my sleep. I swear to God. I dreamt up this site that had just stuff on it. Cool Stuff, just whatever stuff is somewhat cool. And it would be called Stuff Tabernacle. Well, when I woke up, i still remembered it, but I've ALWAYS thought that Tabernacle meant like a bar, or pub (a friend told me that a long time ago, so that's why) and I kept trying to come up with another name, that meant a place to worship stuff, Stuff Church, House of Stuff, all sorts of stupid shit, but I kept hearing Tabernacle in my head. So finally, i hit up http://dictionary.com and sure enough, Tabernacle means a place of worship. That's a true story so help me God.

I also dreamt up a site like two days later. A very technical site, but run by 3 woman and called TechWhores or TechSluts something like that. (I guess because computer geeks like the idea of a girl who knows her tech shit, and will also suck the sheets up into the crack of your ass in the bedroom) I even dreamt the logo. It would be like a pair of lips, really nice red lips that turn into a circuit board but stay in the shape of the lips. Get what I'm saying? the left side of the lips are all nice and red, the right side is a green board with metal running through it. God that would be dope.
The kicker? The girls aren't real. It's three guys, but they never reveal that the girls aren't real. If a review on a mobo is done, get some chick with real beautiful hands to hold the shit or something, or point to a bios screen, but the faces are never revealed. I'm far too lazy to actually do this site, but I guarantee it would make dough. damn, i should sleep more, I get good ideas.

LooGie
From the slums of cyberspace
The Stuff Tabernacle


<< Re: PHP question
Posted by Stealth on Thursday May 3, 2001 @ 09:35am
>>reply ][ rating +0  ]

i use to dream in code. now i have visual code dreams... say for instance i'm working out how to put a string through some function and get it back with stuff done to it (like a spell checker). in my dream, i will be holding this big plank of wood or something with a big ass string on it (the string is usually something degenerate and hedonistic) and i will walk it through a big ass sewer-size pipe. hence, piping a string. goddamn my mind is sad.


i'd hate to know what else you dream about.. hehehe.. thats funny though.. do you find that it ever helps you through a problem?

<< Re: PHP question
Posted by voltaic on Thursday May 3, 2001 @ 10:13am
>>reply ][ rating +0  ]

not really.


<< Re: PHP question
Posted by voltaic on Wednesday May 2, 2001 @ 12:48pm
>>reply ][ rating +0  ]

cold fusion is used by more "big company" types. you want a high paying job doing web stuff on windows, you go cold fusion.
closed source.

php is the most widely used apache module on the internet. it is free and runs on all platforms. many smaller or tech savvy companies use php. free software.

i did it with a wiffle ball bat!


<< Re: PHP question
Posted by LooGie on Wednesday May 2, 2001 @ 02:53pm
>>reply ][ rating +0  ]

cold fusion is used by more "big company" types. you want a high paying job doing web stuff on windows, you go cold fusion.
closed source.

php is the most widely used apache module on the internet. it is free and runs on all platforms. many smaller or tech savvy companies use php. free software.

how hard is PHP to learn? Looking at that code, I can KINDA make it out, but not really, and I know Cold Fusion inside and out...maybe I should learn that shit too. *sigh* and use it wiht XML *shudder*

LooGie
From the slums of cyberspace
The Stuff Tabernacle


<< Re: PHP question
Posted by voltaic on Wednesday May 2, 2001 @ 03:58pm
>>reply ][ rating +0  ]

php is about as easy to learn as any other scripting language. there's not too much else to be said about it. if you find scripting languages (javascript, perl, etc) easy to learn, then this will fall right in line.

i did it with a wiffle ball bat!


<< Re: PHP question
Posted by chief on Wednesday May 2, 2001 @ 01:56pm
>>reply ][ rating +0  ]

cold fusion is used by more "big company" types. you want a high paying job doing web stuff on windows, you go cold fusion.
closed source.

php is the most widely used apache module on the internet. it is free and runs on all platforms. many smaller or tech savvy companies use php. free software.

The only code thats worth a shit is the "e/3 encryption" algorythm, written by Ms. Boof Babe in 2001- :)


<< Re: PHP question
Posted by Stealth on Thursday May 3, 2001 @ 09:33am
>>reply ][ rating +0  ]

cold fusion is used by more "big company" types. you want a high paying job doing web stuff on windows, you go cold fusion.
closed source.

php is the most widely used apache module on the internet. it is free and runs on all platforms. many smaller or tech savvy companies use php. free software.

The only code thats worth a shit is the "e/3 encryption" algorythm, written by Ms. Boof Babe in 2001- :)

hahahaha.. oh man.. that is damn funny.. boof babe.. is she blond?

<< Re: PHP question
Posted by chief on Friday May 4, 2001 @ 01:28pm
>>reply ][ rating +0  ]

cold fusion is used by more "big company" types. you want a high paying job doing web stuff on windows, you go cold fusion.
closed source.

php is the most widely used apache module on the internet. it is free and runs on all platforms. many smaller or tech savvy companies use php. free software.

The only code thats worth a shit is the "e/3 encryption" algorythm, written by Ms. Boof Babe in 2001- :)

hahahaha.. oh man.. that is damn funny.. boof babe.. is she blond?

fuck blondes!


<< Re: PHP question
Posted by Krux on Friday May 4, 2001 @ 02:11pm
>>reply ][ rating +0  ]

cold fusion is used by more "big company" types. you want a high paying job doing web stuff on windows, you go cold fusion.
closed source.

php is the most widely used apache module on the internet. it is free and runs on all platforms. many smaller or tech savvy companies use php. free software.

The only code thats worth a shit is the "e/3 encryption" algorythm, written by Ms. Boof Babe in 2001- :)

hahahaha.. oh man.. that is damn funny.. boof babe.. is she blond?

fuck blondes!

I thought that generally was the point.

-k


<< Re: PHP question
Posted by Stealth on Friday May 4, 2001 @ 02:19pm
>>reply ][ rating +0  ]

cold fusion is used by more "big company" types. you want a high paying job doing web stuff on windows, you go cold fusion.
closed source.

php is the most widely used apache module on the internet. it is free and runs on all platforms. many smaller or tech savvy companies use php. free software.

The only code thats worth a shit is the "e/3 encryption" algorythm, written by Ms. Boof Babe in 2001- :)

hahahaha.. oh man.. that is damn funny.. boof babe.. is she blond?

fuck blondes!

I thought that generally was the point.

hehehe.. maybe the navy converted him and he dosn't do that to booth babes.. maybe he only does that kind of thing to the salesmen..

<< Re: PHP question
Posted by voltaic on Friday May 4, 2001 @ 03:27pm
>>reply ][ rating +0  ]

hehehe.. maybe the navy converted him and he dosn't do that to booth babes.. maybe he only does that kind of thing to the salesmen..

he's never liked blonde chicks. on the other hand i have no idea where you got the whole salesmen thing, so i'm just gonna chalk that up as another stealth-wonder.

i did it with a wiffle ball bat!


<< Re: PHP question
Posted by Stealth on Saturday May 5, 2001 @ 09:36am
>>reply ][ rating +0  ]

hehehe.. maybe the navy converted him and he dosn't do that to booth babes.. maybe he only does that kind of thing to the salesmen..

he's never liked blonde chicks. on the other hand i have no idea where you got the whole salesmen thing, so i'm just gonna chalk that up as another stealth-wonder.

there are no salesmen at E-3?? ok.. let me rephrase that to the people of male gender

- Stealth


<< Re: PHP question
Posted by voltaic on Wednesday May 2, 2001 @ 02:28pm
>>reply ][ rating +0  ]

you need to fix your fucking phone, jackass. hehehe

i did it with a wiffle ball bat!


   [ Main Page ][ First New  ]