Location: PHPKode > scripts > Fotot Web > fotot-web/altape.php
<html>
<title>Foto web</title>
<body background="fondo.gif">
<?php
require "setup.php";
require "$languajefile";
$db = mysql_connect($servidor, $usuario, $password);
mysql_select_db("$base",$db);
 $result = mysql_query("SELECT * FROM coleccion order by tipo",$db);
    if ($myrow = mysql_fetch_array($result)) {
      

  

        
echo "<CENTER><B>$primero</B></CENTER>";

echo "<BR>";

echo "<CENTER>";

echo "<form method='post' action='alta.php'>";

echo "<B> $segundo </B><BR>";
echo "<select name='coleccion' size='1'>";	
          echo "<option>";
          do {
          printf("%s\n",  $myrow["tipo"]);
           echo "<br>";
 	

          } while  ($myrow = mysql_fetch_array($result)); echo"\n";
 echo "</option>";        
         
  
      
echo "</select><br>";

echo "<B> $tercero </B><BR><TEXTAREA name='datos' rows='6' cols='40'></textarea><br><BR>";

echo "<B> $cuarto </B><BR><input type='Text' name='fecha'><br><BR>";

echo "<B> $quinto </B><BR> <INPUT TYPE='file' NAME='link' SIZE=34  ACCEPT='text/html'";


echo "<BR>";
echo "<BR>";
echo "<BR>";
echo "<BR>";

	
echo "<input type='Submit' name='submit' value='$sexto'>";
echo "<br>";
  echo "<a href='index.php'>$cincuenta</a>";

echo "</CENTER>";
      } else {
echo "No Hay ninguna Galeria creada, cree una para dar de alta una Foto";
}
?>
</BODY>
</HTML>
Return current item: Fotot Web