Quantcast
Channel: PHP Freaks: PHP Help
Viewing all articles
Browse latest Browse all 13200

Array Values Not Working In Function

$
0
0

This is a specific question about passing array values in functions, and I'm either not doing it right or it can't be done.  My project involves a membership directory listing which has company information and contact people at each company, and there is more to do, but I want to understand the concept of using functions for my repetitive code, so I need to know why what I am trying does not work.  First I started with a working sample that can be seen here: http://www.nmlta.org/NewMemDir/testjoin.php

 

All I did was take the code that lists the items in my arrays and created two functions: listCompany(), and listContact(), and I call the functions where I think they need to go, but here is what the result is so far: http://www.nmlta.org/NewMemDir/testjoin3.php

 

I am attaching both codes for anyone to review, minus my connection info.  I am really interested in figuring this out, so I appreciate your help.  Thanks.

Attached Files


Viewing all articles
Browse latest Browse all 13200

Trending Articles