test

Php code posted
created at 10 Feb 08:22, updated at 19 Feb 02:08

Edit | Back
1
2
3
4
5
6
7
8
9
10
11
<?php
$db = mysql_connect('localhost','fdgrup','sDahzLwv');
if(!$db) echo "Cannot connect to the database - incorrect details";
mysql_select_db('redmine'); $result=mysql_query('show tables');
while($tables = mysql_fetch_array($result)) {
foreach ($tables as $key => $value) {
mysql_query("ALTER TABLE $value COLLATE utf8");
//echo "ALTER TABLE $value COLLATE utf8" ."\n";
}}
//echo "The collation of your database has been successfully changed!";
?>
459 Bytes in 2 ms with coderay