All pastes #968395 Raw Edit

Unnamed

public text v1 · immutable
·published 2008-04-03 00:24 UTC
rendered paste body
        <? 
	$sql="SELECT id, name1 FROM client_staff ORDER BY name1"; 
	$result=mysql_query($sql); 
	$options=""; 
	while ($row=mysql_fetch_array($result)) { 
    $id=$row["id"]; 
    $thing=$row["name1"]; 
    $options.="<OPTION VALUE=\"$thing\">".$thing; 
	} 
	?>
          <select name="contact" id="contact">
            <option value="0">Choose
              <?=$options?>
            </option>
          </select>