Sorry I should have been more clear you see this array below, notice it has two separate user values in there. If i wanted to add a third user value into this array with those same fields how would i do that? Thanks you guys/girls btw!
PHP Code:
var contacts = [{"LNAME":"Saula.","FNAME":"Sir","MIDDLE":"","TITLE":"Ph.D.","JOB":"Academic Dean of Engineering","SECTION":"Dean's Office","EMAIL":"sirsaulajr@ttasdsau.edu","IMG":"/coe/dean/”},{"LNAME":"sdsada","FNAME":"John","MIDDLE":"bab","TITLE":"Ph.D.","JOB":"Senior Associate Dean","SECTION":"Dean's Office","EMAIL":"basdas@masma.com","IMG":"/coe/dean/images/ "}];
hmm last question; I am trying to push to the javascript array after looping 200 times through the member array to push every member that matches the department selected description into the javascript array., However it fails
PHP Code:
<? $i = 0 ; while( $i < 200) {
if ($members[$i]['department'] == $depttts){ break; echo "<script type='text/javascript'>contacts.push({"NAME":"SirSaula","TITLE":"John","CONTACT":"bab","RESEARCH":"Ph.D."});</script>";
Bookmarks