Functions.php
<?php
function ($markacikar){
$sql=("SELECT * FROM markalar order by markaID ASC");
$sorgu=mysql_query($sql);
while ($sonuc=mysql_fetch_array($sorgu)){
echo'<option value='.$sonuc[markaID].'>'.$sonuc[marka_ad].'</option>';
}
}
?>İlanekle.php
<?php
include "baglan.php";
include "functions.php";
$step=@$_GET['step'];
if ($step=="1"){
}else{
echo "
<form action=".$_SERVER['PHP_SELF']."?step=1 method=POST>
<table width=350 border=0>
<tr>
<td height=30 colspan=2 bgcolor=#EAEAEA>İLAN EKLEME FORMU</td>
</tr>
<tr>
<td height=39 colspan=2>Lütfen ekleyeceğiniz aracın markasını seçin.</td>
</tr>
<tr>
<td width=79>Marka :</td>
<td width=261>
<select name=markaID id=markaID>
";
markacikar();
echo "
</select>
</td>
</tr>
<tr>
<td colspan=2> </td>
</tr>
</table>
";
}
?>
