<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content="text/html; charset=windows-1257" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.6001.18783">
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT size=2 face=Arial>Tai cia taip paprastai nepadarysi, nebent, kad kai
pasirenki marke, puslapis refrshinasi ir atsidaro su visais modeliais. Jei nori,
kad is db paimtu be refresho (kaip autopliuse, tarkim), tau reikia naudoti
ajax.</FONT></DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000000 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV>"zigmas" <<A
href="mailto:montag26@gmail.com">montag26@gmail.com</A>> wrote in message
<A
href="news:h3knvv$mn6$1@trimpas.omnitel.net">news:h3knvv$mn6$1@trimpas.omnitel.net</A>...</DIV>
<DIV><FONT color=#000080 size=2>cia kodas pagal kuri isrenku markes is
DB.</FONT></DIV>
<DIV><FONT color=#000080 size=2></FONT> </DIV>
<DIV><FONT color=#000080
size=2></select></td><BR> </tr><BR> <tr><BR> <td
align="right" height="26" width="42%"><BR> <p
style="text-align: right">Mark:&nbsp;&nbsp;&nbsp;
</td><BR> <td height="26" width="56%" style="text-align:
left"><BR>
<p style="text-align:
left"><BR>
<select size="1" name="marke" style="width=230; height:21"
onchange="parinkti_marke(marke,
modelis);"><BR> <option selected>Pasirinkite
mark</option></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT color=#000080 size=2> <?php </FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT color=#000080
size=2>
$db_connection = mysql_connect('localhost', 'gagass',
'panasonic');</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT color=#000080
size=2>
// pagal koda isrenkam duomenis is db</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT color=#000080
size=2>
$result=mysql_db_query("gagass","SELECT auto_mark_kod FROM auto_markes ORDER
BY auto_mark_kod");</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV><FONT color=#000080>
<DIV><BR><FONT
size=2>
//Paleidziame cikla duomenu isvedimui</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT
size=2>
while(list($eilute) = mysql_fetch_row($result)){</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT
size=2>
echo '<option value="'.$eilute.'">'.$eilute.'</option>';
</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><BR><FONT
size=2>
}</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT
size=2>
mysql_free_result($eilute);<BR>
mysql_close($db_connection);</FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT
size=2>
?></FONT></DIV>
<DIV><FONT size=2></FONT> </DIV>
<DIV><FONT size=2>
</select></td><BR> </tr><BR> </FONT></FONT>"zigmas"
<<A href="mailto:montag26@gmail.com">montag26@gmail.com</A>> wrote in
message <A
href="news:h3kmlj$ks6$1@trimpas.omnitel.net">news:h3kmlj$ks6$1@trimpas.omnitel.net</A>...</DIV>
<BLOCKQUOTE
style="BORDER-LEFT: #000080 2px solid; PADDING-LEFT: 5px; PADDING-RIGHT: 0px; MARGIN-LEFT: 5px; MARGIN-RIGHT: 0px"
dir=ltr>
<DIV><STRONG><FONT color=#000080
face="Microsoft Sans Serif">Sveiki,</FONT></STRONG></DIV>
<DIV><STRONG><FONT color=#000080
face="Microsoft Sans Serif"></FONT></STRONG> </DIV>
<DIV><STRONG><FONT color=#000080 face="Microsoft Sans Serif">gal kas gali
mestelti koki skriptuka. Man reikia pasirinkti is combo box auto marke, ir
kad pagal ta marke kitame combo boxe ismestu modeliu.</FONT></STRONG></DIV>
<DIV><STRONG><FONT color=#000080 face="Microsoft Sans Serif">Nieko
nesuprantu apie php, bet sita reikia padaryti. Jau viska siaip netaip
padariau, tik truksta virsuje isvardinto dalyko. Zinau kad ten cikliuka
reikia prasukti, bet as nemoku nieko.</FONT></STRONG></DIV>
<DIV><STRONG><FONT color=#000080
face="Microsoft Sans Serif"></FONT></STRONG> </DIV>
<DIV><STRONG><FONT color=#000080
face="Microsoft Sans Serif">Dekui</FONT></STRONG></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>