inc/record.inc.php
changeset 87 654262e698e2
parent 86 0205771bf84c
child 88 fa948cc3727e
--- a/inc/record.inc.php	Wed Mar 26 09:21:53 2008 +0000
+++ b/inc/record.inc.php	Wed Mar 26 09:31:12 2008 +0000
@@ -337,11 +337,12 @@
 					$query = "INSERT INTO records VALUES (''," 
 							. $db->quote($domain_id) . "," 
 							. $db->quote($domain) . "," 
-							. $db->quote($ns1.' '.$hm.' 1') 
-							. ",'SOA',"
+							. "'SOA',"
+							. $db->quote($ns1.' '.$hm.' 1') . ","
 							. $db->quote($ttl) 
 							. ", 0, "
 							. $db->quote($now).")";
+					echo "<pre>" . $query . "</pre>";
 					$response = $db->query($query);
 					if (PEAR::isError($response)) { error($response->getMessage()); return false; }
 				} elseif ($domain_id) {
@@ -363,11 +364,12 @@
 							$query = "INSERT INTO records VALUES (''," 
 									. $db->quote($domain_id) . ","
 									. $db->quote($name) . ","
+									. $db->quote($type) . ","
 									. $db->quote($content) . ","
-									. $db->quote($type) . ","
 									. $db->quote($ttl) . ","
 									. $db->quote($prio) . ","
 									. $db->quote($now) . ")";
+							echo "<pre>" . $query . "</pre>";
 							$response = $db->query($query);
 							if (PEAR::isError($response)) { error($response->getMessage()); return false; }
 						}