Código PHP:
$link = mysql_connect($_SESSION['HOST'], $_SESSION['USER'], $_SESSION['PASS']);
mysql_select_db($_SESSION['SCHEMA'], $link);
echo '<select name="combopaises">';
$sql="SELECT short_name FROM country_t";
$result=mysql_query($sql);
$i = 0;
echo "<option value= " . "> </option>";
while ($row = mysql_fetch_row($result))
{
echo "<option value='" . $row[$i] . "'>" . $row[$i] . "</option>";
}
echo "</select>";
Ahora intento entrar en la orientación a objetos, y planteo algo como....
Código PHP:
$mysqli = new mysqli($_SESSION['HOST'], $_SESSION['USER'], $_SESSION['PASS'], $_SESSION['SCHEMA']);
$stmt = $mysqli -> stmt_init();
$query = "SELECT short_name FROM country_t";
$stmt -> prepare($query);
$stmt -> execute();
$stmt -> bind_result($existe);
$stmt -> fetch();
Muchas gracias otra vez