Welcome Guest, Not a member yet? Register   Sign In
Questions on working with db results
#6

[eluser]braca86[/eluser]
just one more thig... i neet to pass selected radio and info into 3rd table ... any hints???

Code:
<FORM NAME ="form" METHOD ="GET" ACTION ="process.php">
<?php

$query = $this->db->query('SELECT `anketaodgovori`.`Odgovor`, `anketaodgovori`.`RedniBroj`, `anketaodgovori`.`ID` FROM `anketaspisak` LEFT JOIN `bazaanketa`.`anketaodgovori` ON `anketaspisak`.`ID` = `anketaodgovori`.`IDAnketaSpisak` WHERE (`anketaspisak`.`Aktivna` =1)
ORDER BY `anketaodgovori`.`RedniBroj` ASC');

foreach ($query->result() as $row)
{    
    echo '<input type="radio" name="odgovor" value='.$row->ID ;';/>' ;    
    echo $row->RedniBroj;    
    echo $row->Odgovor.'</li>';  
}
?&gt;
    
&lt;INPUT TYPE = "Submit" Name = "Submit"  VALUE = "Submit"&gt;
&lt;/FORM&gt;


Messages In This Thread
Questions on working with db results - by El Forum - 09-22-2010, 08:23 AM
Questions on working with db results - by El Forum - 09-22-2010, 08:27 AM
Questions on working with db results - by El Forum - 09-22-2010, 08:32 AM
Questions on working with db results - by El Forum - 09-22-2010, 08:34 AM
Questions on working with db results - by El Forum - 09-22-2010, 08:39 AM
Questions on working with db results - by El Forum - 09-22-2010, 12:47 PM
Questions on working with db results - by El Forum - 09-23-2010, 06:56 AM
Questions on working with db results - by El Forum - 09-23-2010, 07:13 AM
Questions on working with db results - by El Forum - 09-23-2010, 10:25 AM



Theme © iAndrew 2016 - Forum software by © MyBB