CodeIgniter datu basiekaz konekta: oracle eta mysql

database.php … $active_group = “default”; $active_record = TRUE; $db[‘oracle’][‘hostname’] = ‘(DESCRIPTION =(ADDRESS_LIST =(ADDRESS = (PROTOCOL = TCP) (HOST = 192.168.1.1)(PORT = 1521)))(CONNECT_DATA =(SERVICE_NAME = DATUBASIEN_IZENA)))’; $db[‘oracle’][‘username’] = “ERABILTZAILEA”; $db[‘oracle’][‘password’] = “PASAHITZA”; $db[‘oracle’][‘database’] = “”; $db[‘oracle’][‘dbdriver’] = “oci8”; $db[‘oracle’][‘dbprefix’] = “”; $db[‘oracle’][‘pconnect’] = TRUE; $db[‘oracle’][‘db_debug’] = TRUE; $db[‘oracle’][‘cache_on’] = FALSE; $db[‘oracle’][‘cachedir’] = “”; //$db[‘oracle’][‘char_set’] = “utf8”; […]

Zelan erabili php plantillekaz bihar eitzeko

<?php $a = array(1, 2, 3, 4); $b = 10; ?> <h1>PHP templates</h1> <ul> <?php foreach($a as $value): ?> <li><?=$value?></li> <?php endforeach ?> </ul> <?php if($b<10): ?> b hamar baño txikidxaue da: <?=$b?> <?php elseif($b==10): ?> b hamar da: <?=$b?> <?php else : ?> b hamar baño handidxaue da: <?=$b?> <?php endif ?>