Esempio n. 1
0
     $result = mysql_query($QUERIES->getExportPoi());
     if (mysql_num_rows($result) > 0) {
         $text .= "\n\nINSERT INTO poi VALUES ";
     }
     $count = 0;
     while ($row = mysql_fetch_array($result)) {
         $text .= "(" . $row[0] . ", " . $row[1] . ", " . $row[2] . ", " . $row[3] . ", " . $row[4] . ", " . $row[5] . ", '" . $row[6] . "')";
         $count++;
         if ($count < mysql_num_rows($result)) {
             $text .= ",\n";
         }
     }
 }
 if (!isset($_REQUEST['exclude']) || isset($_REQUEST['exclude']) && !in_array("groups", $_REQUEST['exclude'])) {
     //Adding poi data
     $result = mysql_query($QUERIES->getExportGroups());
     if (mysql_num_rows($result) > 0) {
         $text .= "\n\nINSERT INTO groups VALUES ";
     }
     $count = 0;
     while ($row = mysql_fetch_array($result)) {
         $text .= "(" . $row[0] . ", '" . $row[1] . "', " . $row[2] . ", " . $row[3] . ")";
         $count++;
         if ($count < mysql_num_rows($result)) {
             $text .= ",\n";
         }
     }
 }
 if (!isset($_REQUEST['exclude']) || isset($_REQUEST['exclude']) && !in_array("frames", $_REQUEST['exclude'])) {
     //Adding poi data
     $result = mysql_query($QUERIES->getExportFrames());