Beispiel #1
0
<?php

include_once "class/site.class.php";
$app = new site();
$app->connecttodb();
$bolge = $app->query("select * FROM hotelbeds_destinations ");
foreach ($bolge as $bol) {
    $url = strtolower($app->guvenli($bol['name']));
    $asd = $bol['id'];
    $app->query("UPDATE hotelbeds_destinations SET link='{$url}' WHERE id={$asd}");
}