コード例 #1
0
ファイル: test21.php プロジェクト: alitayfur/kesfetcom
<?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}");
}