Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "SHOW TABLES LIKE 'puzzle'"
- $joined = [];
- foreach ((array)$table as $key => $value) {
- $tb = array_values($value)[0];
- $joined[]= "SELECT * FROM $tb ";
- }
- $table = join(" UNION ",$joined);
- //result SELECT * FROM puzzle1 UNION puzzle2 ....
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement