- $misce = mysql_real_escape_string($misce);
- $roll = mysql_real_escape_string($roll);
- //build query
- $query = ("SELECT `pidmisce` FROM $t1 WHERE `misce` = '$misce' and `riven`='$roll'");
- //Execute query
- $qry_result = mysql_query($query) or die(mysql_error());
- //Build Result String
- if(is_numeric($roll)){
- $roll++;
- $display_string = "<select name='Misce' onChange='Otpravka(myForm.country.options[myForm.country.selectedIndex].text,$roll)'>";}
- // Insert a new row in the table for each person returned
- while($row = mysql_fetch_array($qry_result)){
- $display_string .= "<option value='$row[pidmisce]'>$row[pidmisce]</option>";
- }
- $display_string = "</select>";
- //header('Content-type:text/xml;charset="windows-1251"');
- echo"<response>"."Скажи мне кто ты?"."</response>";