mirror of
https://git.code.sf.net/p/seeddms/code
synced 2024-11-26 15:32:13 +00:00
- fixed creation of dump file
This commit is contained in:
parent
e704adab00
commit
d9f83a155d
|
@ -47,11 +47,13 @@ foreach ($tables as $table){
|
|||
foreach ($records as $record){
|
||||
|
||||
$values="";
|
||||
for ($i=0;$i<(count($record)/2);$i++){
|
||||
if (is_numeric($record[$i])) $values .= $record[$i];
|
||||
else $values .= "'".$record[$i]."'";
|
||||
$i = 1;
|
||||
foreach ($record as $column) {
|
||||
if (is_numeric($column)) $values .= $column;
|
||||
else $values .= "'".$column."'";
|
||||
|
||||
if ($i<(count($record)/2-1)) $values .= ",";
|
||||
if ($i<(count($record))) $values .= ",";
|
||||
$i++;
|
||||
}
|
||||
|
||||
fwrite($h, "INSERT INTO " . $table . " VALUES (" . $values . ");\n");
|
||||
|
|
Loading…
Reference in New Issue
Block a user