• 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!

TOPIC: Mappings Bug?!

Mappings Bug?! 10 years 3 weeks ago #30960

  • siolishe
  • siolishe's Avatar
  • OFFLINE
  • Fresh Boarder
  • Posts: 2
Hi
I have 5 different mappings which are control by some php codes
I have a wired problem! It dosen't matter what I choose in my form, every time mappings no.5 will execute!!
so is there any problem whit my code or it's some kind of Bug?!!!
here is my code :
for($i = 0; $i <= count ( $mappings ); $i ++) {
 
	if ($_POST ['form'] ['type'] == '1') {
 
		if ($_POST ['form'] ['choose'] == '2') {
 
			if ($_POST ['form'] ['Multifield'] == '0') {
 
				if ($mappings [$i]->ordering != 1) {
 
					unset ( $mappings [$i] );
				}
			}
			if ($_POST ['form'] ['Multifield'] == '1' and $_POST ['form'] ['Howmany'] == '2') {
 
				if ($mappings [$i]->ordering != 2) {
 
					unset ( $mappings [$i] );
				}
			}
			if ($_POST ['form'] ['Multifield'] == '1' and $_POST ['form'] ['Howmany'] == '3') {
 
				if ($mappings [$i]->ordering != 3) {
 
					unset ( $mappings [$i] );
				}
			}
		}
		if ($_POST ['form'] ['choose'] == '1') {
 
			if ($mappings [$i]->ordering != 5) {
 
				unset ( $mappings [$i] );
			}
		}
	}
	if ($_POST ['form'] ['type'] == '2') {
 
		if ($_POST ['form'] ['choose'] == '2') {
 
			if ($mappings [$i]->ordering != 4) {
 
				unset ( $mappings [$i] );
			}
		}
		if ($_POST ['form'] ['choose'] == '1') {
 
			if ($mappings [$i]->ordering != 5) {
 
				unset ( $mappings [$i] );
			}
		}
	}
}
Last Edit: 10 years 3 weeks ago by siolishe.
The administrator has disabled public write access.
  • 1

Read this first!

We do not monitor these forums. The forum is provided to exchange information and experience with other users ONLY. Forum responses are not guaranteed.

However, please submit a ticket if you have an active subscription and wish to receive support. Our ticketing system is the only way of getting in touch with RSJoomla! and receiving the official RSJoomla! Customer Support.

For more information, the Support Policy is located here.

Thank you!