------------Index--------------
<html>
<body>
<table height="600" width="949" border="1" background="Imagens/Background.png">
<tr height="20">
<td colspan="4">
</td>
</tr>
<tr>
<td colspan="3" width="415" height="75">
<img src="Imagens/Banner.png" width="415" height="75">
</td>
<td rowspan="7" width="100">
</td>
</tr>
<tr height="50">
<td colspan="2">
Nome: <input type="text" name="nome"> Senha: <input type="password" name="senha"> <input type="submit" value="ok">
<a href="registar.html" target="central">Registrar</a> <a href="sair.php" target="central">Sair</a>
</td>
<td width="600">
<p align="center"> <a href="Iframe_listaTds.html" target="central">Todos</a> - <a href="Iframe_listaNum.html" target="central">0-9</a> - <a href="Iframe_listaA.html" target="central">A</a> - <a href="Iframe_listaB.html" target="central">B</a> - <a href="Iframe_listaC.html" target="central">C</a> - <a href="Iframe_listaD.html" target="central">D</a> - <a href="Iframe_listaE.html" target="central">E</a> - <a href="Iframe_listaF.html" target="central">F</a> - <a href="Iframe_listaG.html" target="central">G</a> - <a href="Iframe_listaH.html" target="central">H</a> - <a href="Iframe_listaI.html" target="central">I</a> - <a href="Iframe_listaJ.html" target="central">J</a> - <a href="Iframe_listaK.html" target="central">K</a> - <a href="Iframe_listaL.html" target="central">L</a> - <a href="Iframe_listaM.html" target="central">M</a> - <a href="Iframe_listaN.html" target="central">N</a> - <a href="Iframe_listaO.html" target="central">O</a> - <a href="Iframe_listaP.html" target="central">P</a> - <a href="Iframe_listaQ.html" target="central">Q</a> - <a href="Iframe_listaR.html" target="central">R</a> - <a href="Iframe_listaS.html" target="central">S</a> - <a href="Iframe_listaT.html" target="central">T</a> - <a href="Iframe_listaU.html" target="central">U</a> - <a href="Iframe_listaV.html" target="central">V</a> - <a href="Iframe_listaW.html" target="central">W</a> - <a href="Iframe_listaX.html" target="central">X</a> - <a href="Iframe_listaY.html" target="central">Y</a> - <a href="Iframe_listaZ.html" target="central">Z</a></p>
</td>
</tr>
<tr>
<td width="400" rowspan="5">
</td>
<td width="150">
</td>
<td rowspan="5" width="400">
<iframe name="central" align="middle" scrolling="auto" width="100%" height="100%">
</iframe>
</td>
</tr>
<tr>
<td width="150">
<a href="Iframe_listaTds.html" target="central"><img border="0" src="Imagens/BTCinema.png">
</td>
</tr>
<tr>
<td width="150">
<a href="Iframe_listaTds.html" target="central"><img border="0" src="Imagens/BTDVD.png">
</td>
</tr>
<tr>
<td width="150">
<a href="Iframe_listaTds.html" target="central"><img border="0" src="Imagens/BTBrevemente.png">
</td>
</tr>
<tr>
<td width="150">
</td>
</tr>
<tr height="3">
<td colspan="4">
</td>
</tr>
<tr height="16" width="949">
<td colspan="4">
<img src="Imagens/Rodape.png" width="949" height="16">
</td>
</tr>
<tr height="3">
<td colspan="4">
</td>
</tr>
</table>
</body>
</html>
------------Registrar--------------
<html>
<body>
<form action="registar2.php" method="POST">
Nome: <input type="text" name="nome" size="10" maxlength="10"><br>
Senha: <input type="text" name="senha" size="10" maxlength="10"><br>
Idade: <input type="text" name="idade" size="10" maxlength="10"><br>
<input type="submit" value="Registar">
</form>
</body>
</html>
------------Registrar--------------
<?
include ("conectar.php");
$Nome = $_POST['nome'];
$Senha = $_POST['senha'];
$inserir = mysql_query("INSERT INTO utilizadores( `Nome`, `Senha`) VALUES ('$Nome','$Senha')") or die(mysql_error());
if($inserir)
echo "Registo realizado com sucesso!";
else
echo "Não foi possível fazer o seu registo!";
?>
------------Login--------------
<html>
<body>
<form action="entrar.php" name="entrar" method="POST">
Nome: <input type="text" name="nome"><br>
Senha: <input type="text" name="senha"><br>
<input type="submit" value="Ok">
</form>
</body>
</html>
------------Login--------------
<?php
include ("conectar.php");
$Nome= $_POST['nome'];
$Senha = $_POST['senha'];
$entra = mysql_query("SELECT * FROM utilizadores WHERE Nome='$Nome' AND Senha='$Senha'") or die("erro ao selecionar");
if (strlen($Senha)< 1)
echo '<p align="center"> Senha Incorreta, Por favor<BR><a href="entrar.html" target="central">tente denovo</a></p>';
elseif (mysql_num_rows($entra)>0 )
{
header("location:index2.html");
}
else
{
echo '<p align="center">Senha ou apelido invalido.<BR><a href="entrar.html" target="central">tente denovo</a></p>';
}
?>
------------Inserir Filme--------------
<html>
<body>
<form name="ficheiro" action="inserirfilme.php" method="post" enctype="multipart/form-data">
Cartaz: <input type="file" name="imagem" size="50">
Realizador: <input type="text" name="realizador">
Actores: <input type="text" name="actores">
Trailer: <input type="text" name="trailer">
Sinopse: <textarea id="sinopse" cols="50" rows="10" name="sinopse"></textarea>
Ano: <input type="text" name="ano">
Duracao: <input type="text" name="duracao">
<br>
<input type="submit" value="Inserir">
</form>
</body>
</html>
------------Inserir Filme--------------
<?php
include ("conectar.php");
$Imagem=$_FILES['imagem']['temp'];
$Tamanho=$_FILES['imagem']['tamanho'];
$Realizador=$_POST['realizador'];
$Actores=$_POST['actores'];
$Trailer=$_POST['trailer'];
$Sinopse=$_POST['sinopse'];
$Ano=$_POST['ano'];
$Duracao=$_POST['duracao'];
$fich=fopen($Imagem,'r');
$Imagens=fread($fich,$Tamanho);
$Imagens=addslashes($Imagens);
fclose($fich);
echo "$Imagem->$Tamanho";
$Query= "insert into filmes set Cartaz='$Imagens',Realizador='$Realizador',Actores='$Actores',Trailer='$Trailer',Sinopse='$Sinopse',Ano='$Ano',Duracao='$Duracao'";
$resultado=@mysql_query($Query,$DBConn);
?>
É isso que tenho ate agora...aquela parte de ordenar os filmes pensoq ue nao precise de tantos Iframes um basta mas nao sei como se faz isso :S depois no login quando abrir e fechar a sessao tambem nao sei fazer :S e na parte de inserir as imagens penso que falta algo porque nao consigo as chamar depois para mostrar :S
Se alguem conseguir dar uma ajuda agradecia