www/import/from_brouwhulp.php

changeset 38
b7d44c98d609
parent 35
d6314a95021c
child 45
95251bedfab4
equal deleted inserted replaced
37:9362eb9e9e5b 38:b7d44c98d609
397 foreach ($mash->MASH_STEPS->MASH_STEP as $step) { 397 foreach ($mash->MASH_STEPS->MASH_STEP as $step) {
398 398
399 if ($comma) 399 if ($comma)
400 $steps .= ','; 400 $steps .= ',';
401 $comma = TRUE; 401 $comma = TRUE;
402 $steps .= '{"name":"' . mysqli_real_escape_string($db, $step->NAME) . '"'; 402 $steps .= '{"step_name":"' . mysqli_real_escape_string($db, $step->NAME) . '"';
403 if ($step->TYPE) { 403 if ($step->TYPE) {
404 $steps .= ',"type":"' . $step->TYPE . '"'; 404 $steps .= ',"step_type":"' . $step->TYPE . '"';
405 } 405 }
406 if ($step->STEP_TEMP) { 406 if ($step->STEP_TEMP) {
407 $steps .= ',"step_temp":"' . $step->STEP_TEMP . '"'; 407 $steps .= ',"step_temp":"' . $step->STEP_TEMP . '"';
408 } 408 }
409 if ($step->STEP_TIME) { 409 if ($step->STEP_TIME) {

mercurial