mysql - php echo not working after elseif -


I am trying to explore data from an XML file whose use is simplexml. I've been running a series of late and late rings which I have to dig on when I need them.

However, I have found that after elapse ends I can not display additional data on the screen (resonance and print_r do not work). I've attached a code snippet for the Alleff Loop by the end of the script end. Please excuse the lossy code, I'm a relatively new programmer.

  elseif ($ select_vars [1] == - 1) {$ sub1 = 0; $ Sub2 = 0; $ Temp_count = 1; $ Modnum = intval ($ select_vars [0]); $ Sub1m = $ xmls- & gt; Module- & gt; {Intval ($ select_vars [0])} - & gt; Count (); ($ Sub1 & lt; $ sub1m) {foreach ($ xmls- & gt; module- & gt; {$ modnum} - & gt; sublist1- & gt; {$ sub1} $ hit2) {$ sub2m = $ Xmls- & gt; Module - & gt; {$ Modnum} - & gt; Sublist1- & gt; {$ Sub1} - & gt; Count (); While ($ sub2 <$ sub2m) {foreach ($ xmls-> module-> gt; {$ modnum} -> sublist1-> gt; {$ sub1} - & gt; sublist2- & gt; {$ Sub2} $ hit3) {$ Template_string. = $ Temp_count "-" (string) $ hit3 "
"; $ Temp_count = $ temp_count + 1; $ Template_list [] = (string) $ hit3; } $ Sub2 = $ sub2 + 1; } $ Sub1 = $ sub1 + 1; $ Sub2 = 0; }} Echo "sub1 =" $ sub 1 "
"; } Echo "here




$ Template_string; Print_r ($ template_list); $ Template_list = array_unique ($ template_list); Type ($ template_list); Print_r ($ template_list);

I know that the loops get correct information because I can echo out the esleif closing bracket and resonate anywhere in various edges.

A live copy of the code is available at:

Edit:

Output 3 should be selected and when the top box is filled, the line in other formats The series of (above 400) + should be blank ####### - #### - #### - #### Should Appear. Edit 2: To see the error: 1. Choose "module" to be set 2. Choose sublist 1 and sublist to empty 3. Make sure 3 in the array at the top Keys (This is a session represents a cookie that is called filter-list and indicates selected items) <3p> <3> Edit 3: I tracked the error but did not enable it to be solved has gone.

There is a fatal error in my logs (fatal error: call the member function number () on the line):

$ sub2m = $ xmls-> module -> {$ modnum } -> sublist1 -> {$ sub1} -> count ();

There was a fatal error on th e. Insul ....

I Tracked the issue and as I thought it was my own stupidity!

I typed the wrong variable for that time ($ sub2

It should be ($ sub2


Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -