Курсовая работа: Создание инструментального средства для организации социологических опросов
{
echo "<ol>";
while($ank=mysql_fetch_assoc($result))
{
$str = "<li>"
."<a href='form.php?formid=" .$ank['idank'] ."'>" .$ank['title']."</a>"
."</li>";
echo $str;
}
echo "</ol>";
}
else
echo "ВБДнетанкет";
}
function showuser($name)
{
$sql = "SELECT * FROM `user` WHERE `name` = '$name'";
$result = @mysql_query($sql);
$result = mysql_fetch_assoc($result);
?>
<form name="form1" method="post" action="index.php">
<input name="id" type="hidden" value="<?=$result['id']?>">
<table width="100%" border="1" align="center" style="border:double; border-color:#ff33cc; background-color:#ff33cc; color:#0000CC; font-weight: 500; border-width: 20;">
<tr>
<td><div align="center"><font color="#000033" >Имя</font></div></td>
</tr>
<tr>
<td><div align="center"><font color="#000033">
<input type="text" name="name" value="<?=$result['name']?>">