http://www.mysql.com/.../E/RENAME_TABLE.html
get the table names via dbi and use the regex
$loc = index($name, "_") + 1;
$replaced = substr($name, $loc);
$name = $name . ucfirst($replaced);
$sth = $sth->prepare("rename table $beforename TO $name");
$sth->execute();
Some of that is a bit poor, but I would appreciate it if anyone could give me ideas on how to improve that.
------------------
Dorg Hurgler Van Schongleur,
NordHein Van Resetelem, Belgium.
Eck SchekeBuugler Technologies.
get the table names via dbi and use the regex
$loc = index($name, "_") + 1;
$replaced = substr($name, $loc);
$name = $name . ucfirst($replaced);
$sth = $sth->prepare("rename table $beforename TO $name");
$sth->execute();
Some of that is a bit poor, but I would appreciate it if anyone could give me ideas on how to improve that.
------------------
Dorg Hurgler Van Schongleur,
NordHein Van Resetelem, Belgium.
Eck SchekeBuugler Technologies.