summaryrefslogtreecommitdiff
path: root/fixTable.php
diff options
context:
space:
mode:
authorComment <tim@gray.(none)>2013-05-08 22:59:04 +0100
committerComment <tim@gray.(none)>2013-05-08 22:59:04 +0100
commit4f81e9399051cc90ccddeb69b785d7422a28a1ff (patch)
treeea5187184ed61114b9315371e5c2d709bdf26c4f /fixTable.php
initial commit
Diffstat (limited to 'fixTable.php')
-rwxr-xr-xfixTable.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/fixTable.php b/fixTable.php
new file mode 100755
index 0000000..c726ad9
--- /dev/null
+++ b/fixTable.php
@@ -0,0 +1,15 @@
+<?php
+include 'config.php';
+
+mysql_connect($host, $login, $pword) or die(mysql_error());
+mysql_select_db($db) or die(mysql_error());
+
+$table= $_GET["table"];
+$col=$_GET["col"];
+
+$query="UPDATE ".$table." SET ".$col."=REPLACE(".$col.", '\\\', '')";
+echo $query."<br>";
+echo mysql_query($query);
+mysql_close();
+
+?>