Ver Mensaje Individual
  #3 (permalink)  
Antiguo 20/09/2011, 03:25
cris_campos
 
Fecha de Ingreso: septiembre-2011
Mensajes: 15
Antigüedad: 12 años, 7 meses
Puntos: 0
Respuesta: Insertar palabras en negrita en mysql

Muchas gracias pero no me funciona quizás tenga que cambiar algo en mi html.

<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />

<title>Preguntas de Lengua</title>
</head>
<body>

<p align='center'>

Preguntas de Lengua</p>




<form name='formulario' id='formulario' method='post' action='test_php.php'>

<input type="hidden" name="opt">

<TABLE border="0" cellpadding="0">


<TR>
<td> <label>Pregunta </td>
<td>
<?php

$link=mysql_connect("localhost","root","PEMYN11111 ");
mysql_query("SET nombre 'utf8'");
mysql_select_db("mysql",$link);

echo"<select name=pregunta id=nombre_dado>";

$sql="SELECT pregunta FROM pregunta_tbl";

$result=mysql_query($sql);

$i=0;
while ($row=mysql_fetch_row($result))
{
echo "<option value=".$row[$i].">".$row[$i]."</option>\n";
}
echo "</select>";
?>
</p>
</td>
</TR>

</form>

</body>
</html>