[eluser]Crnaovca[/eluser]
I just don/t get it what I am doing wrong. This is in database file
Code:
$db['default']['hostname'] = "localhost";
$db['default']['username'] = "admin";
$db['default']['password'] = "1234567";
$db['default']['database'] = "app_man";
$db['default']['dbdriver'] = "mysql";
$db['default']['dbprefix'] = "";
$db['default']['pconnect'] = TRUE;
$db['default']['db_debug'] = TRUE;
$db['default']['cache_on'] = FALSE;
$db['default']['cachedir'] = "";
$db['default']['char_set'] = "utf8";
$db['default']['dbcollat'] = "utf8_general_ci";
so is this correct?
should I have somethin in dbprefix?
Also, in file autoload as first line I have put
Code:
$this->load->database();
and then in app I am writing I have done this
Code:
<select name="stanje_artikla" size="1" class='moj_input3'>
<?php
$query = $this->db->get('tbl_som');
if($query->num_rows() > 0) : // just to make sure ...
foreach ($query->result() as $row) :
?><option value=" <?php echo $row->id ?>"> <?php echo $row->som ?></option><?php
endforeach;
endif;
?>
</select>
and this just doesn't work ... it breaks, but gives me no error, just stops loading page ...