<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=Content-Type content="text/html; charset=windows-1257"> <META content="MSHTML 6.00.2900.3562" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#ffffff> <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 dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px"> <DIV><STRONG><FONT face="Microsoft Sans Serif" color=#000080>Sveiki,</FONT></STRONG></DIV> <DIV><STRONG><FONT face="Microsoft Sans Serif" color=#000080></FONT></STRONG> </DIV> <DIV><STRONG><FONT face="Microsoft Sans Serif" color=#000080>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 face="Microsoft Sans Serif" color=#000080>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 face="Microsoft Sans Serif" color=#000080></FONT></STRONG> </DIV> <DIV><STRONG><FONT face="Microsoft Sans Serif" color=#000080>Dekui</FONT></STRONG></DIV></BLOCKQUOTE></BODY></HTML>