Search found 14 matches

by kayers
Thu Apr 27, 2006 3:42 pm
Forum: PHP - Code
Topic: Multidimensional Array Advice
Replies: 6
Views: 337

Okay, I guess what I'm really wondering is why this for($i = 0; $i < count($custom_fields); $i++) { $current = $custom_field[$i]; fwrite($fp, "current_field values:\n"); fwrite($fp, "group id: $current_field[$i][0]\n"); fwrite($fp, "field id: $current_field[$i][1]\n"); ...
by kayers
Thu Apr 27, 2006 3:32 pm
Forum: PHP - Code
Topic: Multidimensional Array Advice
Replies: 6
Views: 337

Yeah, I looked at that, but I don't know the group id value ahead of time... at least, not in that function; the data's all in the array (or am I just not understaning how to use in_array?). I'll play around with it, though. :)
by kayers
Thu Apr 27, 2006 3:25 pm
Forum: PHP - Code
Topic: Multidimensional Array Advice
Replies: 6
Views: 337

Hmm, well, I didn't write that SQL statement; I found it elsewhere in the code. I'll try it, though. :) Thanks! I'm trying to store the group id, field id, and field values together, to establish a relationship between them. Then I send it back, and later one, send it to another function in another ...
by kayers
Thu Apr 27, 2006 2:38 pm
Forum: PHP - Code
Topic: Multidimensional Array Advice
Replies: 6
Views: 337

Multidimensional Array Advice

Hey all, I'm working on some code where I'm getting values from a db and comparing them to values I've gotten from a web form. It works correctly, but I don't like the format of my array I'm using because later on, I have to instantiate "custom fields" with the values. The problem is that ...
by kayers
Wed Apr 26, 2006 9:49 am
Forum: PHP - Code
Topic: Functions not being seen in class [SOLVED]
Replies: 15
Views: 1661

You may also be getting cached results - it may be a browser problem.
Hmm, yeah, I thought about that, too. I've refreshed, even closed the browser. Plus, I always submit a new ticket to test, so refreshing *shouldn't* be a problem...
by kayers
Wed Apr 26, 2006 7:49 am
Forum: PHP - Code
Topic: Functions not being seen in class [SOLVED]
Replies: 15
Views: 1661

Is there any PHP reason changes to parser.php would not be recognized?
by kayers
Tue Apr 25, 2006 4:03 pm
Forum: PHP - Code
Topic: Functions not being seen in class [SOLVED]
Replies: 15
Views: 1661

Thanks, Jcart! I'll try that too! :)
by kayers
Tue Apr 25, 2006 4:01 pm
Forum: PHP - Code
Topic: Functions not being seen in class [SOLVED]
Replies: 15
Views: 1661

Sorry, this post is pretty long... After looking at the docs, it seems we're forgetting how constructor functions work. In your CER_CF_PARSER_TICKET class, you need to define a constructor method CER_CF_PARSER_TICKET - otherwise I guess it's not being extended. Try that. Yeah, I saw that after tryin...
by kayers
Tue Apr 25, 2006 3:19 pm
Forum: PHP - Code
Topic: Functions not being seen in class [SOLVED]
Replies: 15
Views: 1661

Okay! Here's what I'm getting as a result of little stubs I put in the constructors of CER_PARSER, CER_PARSER_TICKET, CER_CF_PARSER, and CER_CF_PARSER_TICKET: in cer_parser_ticket constructor in cer_parser constructor in cer_parser_ticket constructor in cer_parser constructor in cer_parser construct...
by kayers
Tue Apr 25, 2006 2:41 pm
Forum: PHP - Code
Topic: Functions not being seen in class [SOLVED]
Replies: 15
Views: 1661

Hmm, I can't echo anything (I think; is there a way to echo it out to a console/terminal?) because this code is being used underneath the surface, parsing the email, BUT I'll try to have it printed to a file. Neither functions in the subclasses I made are getting called, but the functions in the par...
by kayers
Tue Apr 25, 2006 12:32 pm
Forum: PHP - Code
Topic: Functions not being seen in class [SOLVED]
Replies: 15
Views: 1661

Yeah, it makes sense. :) But there are classes named CER_PARSER and CER_PARSER_TICKET, but they're really long, and I didn't want to take up a lot of space. :) Originally, I'd had those 2 functions in CER_PARSER and CER_PARSER_TICKET, respectively, and thought they'd behave just like all the other f...
by kayers
Tue Apr 25, 2006 10:50 am
Forum: PHP - Code
Topic: Functions not being seen in class [SOLVED]
Replies: 15
Views: 1661

Well, I did it, and it still doesn't work... I'm completely stumped; it's like the application's just passing over the calls, and I don't know why... I'm adding custom field instantiation via email to Cerberus Helpdesk; it's very crude right now, but I don't have much experience with php other than ...
by kayers
Tue Apr 25, 2006 9:59 am
Forum: PHP - Code
Topic: Functions not being seen in class [SOLVED]
Replies: 15
Views: 1661

Ooo... Interesting suggestion. Hadn't thought of that! I was just plopping in new functions in the class. I'll give it a try; thanks!
by kayers
Tue Apr 25, 2006 9:45 am
Forum: PHP - Code
Topic: Functions not being seen in class [SOLVED]
Replies: 15
Views: 1661

Functions not being seen in class [SOLVED]

Hey, I'm having to modify a php application, and I'm having some trouble. I've added functions to a class and call them in another file, but it's like they're not even getting called. I don't understand why... I'm opening and writing a file in both functions I'm calling, as well as in a function I h...