xml - PHP - wrong switch / case statement -
I am using simple PHP scripts that crashes on data based on data from XML. So what does this: Keep the image with the crash of the site (its div square in the outer), and then I just check the XML and if the value should be displayed on the "Y" & lt; Div class = "front" & gt;
Instead someone can tell me instead is the problem that I can not ever display the "front" image What happened to me?
$ first_damage_zone = true; / / Loop through the area of damage; Key value resonates in pairs & lt; Div class = "outer" & gt; '; // If an empty car image is foreign currency ($ claim = '$' = '' y '' as 'claim' ['normal']] {if ($ ($ value) First_damage_zone) {} switch ($ key) {case 'roof': @ $ k = $ _VIN_QUERY_DAMAGED_ZONES_ROOF; Echo & lt; Div class = "roof" & gt; & Lt; / Div & gt; '; break; Case 'Underbrain': @ $ k = $ _VIN_QUERY_DAMAGED_ZONES_UNDERBODY; break; Case 'front': @ $ key = $ _VIN_QUERY_DAMAGED_ZONES_FRONT; Echo '& lt; Div class = "front" & gt; & Lt; / Div & gt; '; break; Case 'front-left': @ $ K = $ _VIN_QUERY_DAMAGED_ZONES_FRONTLEFT; Echo & lt; Div class = "front-left" & gt; & Lt; / Div & gt; '; break; Case 'front-right': @ $ k = $ _VIN_QUERY_DAMAGED_ZONES_FRONTRIGHT; Echo & lt; Div square = "front-right" & gt; & Lt; / Div & gt; '; break; Case 'Back': @ $ key = $ _VIN_QUERY_DAMAGED_ZONES_REAR; Echo '& lt; Div class = "rear" & gt; & Lt; / Div & gt; '; break; Case 'back-left': @ $ k = $ _VIN_QUERY_DAMAGED_ZONES_REARLEFT; Echo '& lt; Div class = "back-left" & gt; & Lt; / Div & gt; '; break; Case 'Back-Right': @ $ key = $ _VIN_QUERY_DAMAGED_ZONES_REARRIGHT; Echo '& lt; Div class = "back-right" & gt; & Lt; / Div & gt; '; break; Case 'mechanical': @ $ s = $ _VIN_QUERY_DAMAGED_ZONES_MECHANICAL; break; Case 'interior': @ $ s = $ _VIN_QUERY_DAMAGED_ZONES_INTERIOR; break; Case 'center': @ $ k = $ _VIN_QUERY_DAMAGED_ZONES_CENTER; Echo & lt; Div class = "roof" & gt; & Lt; / Div & gt; '; break; Case 'on the left side': $$ = $ _VIN_QUERY_DAMAGED_ZONES_SIDELEFT; Echo '& lt; Div class = "car-left" & gt; & Lt; / Div & gt; '; break; Case 'side-right': @ $ k = $ _VIN_QUERY_DAMAGED_ZONES_SIDERIGHT; Echo & lt; Div class = "car right" & gt; & Lt; / Div & gt; '; break; Echo & lt; Div & gt; '; } If ($ first_damage_zone) {print $ key; $ First_damage_zone = false; } Other {print}, '$ key; }}}
PS I'm sure the tag is in the XML and I'm sure it has Wi-Fi too. So it confuses me: (
XML:
- gt; - & lt; general & gt; & lt; front & gt; Y & lt; / front & gt; & lt; front-left & gt; Y & lt; / front-left & gt; & lt; front-right & gt; N & lt; / front-right & gt; gt; n & lt; / interior & gt; & lt; mechanical & gt; n & lt; / mechanical & gt; & lt; back & gt; N & lt; / back & gt; & lt; Back & gt; N & lt; / back-left & gt; reverse-right & gt; N & lt; / back-right & gt; roof & gt; n & lt; / roof & gt; left-left & Gt; y & lt; / side-left & gt; & lt; side-right &
Comments
Post a Comment