Jump to content


Red FeniX

Member Since 18/07/2008
Offline Last Active 20/12/2009, 23:30
-----

Posts I've Made

In Topic: Problema Na Validação De Dados

03/05/2009, 20:45

Nao vey,

Validação é server-side.

Com PHP

falo

In Topic: Noticia Com 2 Imgens...

26/04/2009, 23:21

Tenta:

$idNoticia = $_GET["NoticiaID"];

$sql = "SELECT * FROM (fotos_noticia INNER JOIN fotos ON fotos_noticia.NoticiaID=fotos.FotoID) INNER JOIN noticias ON fotos_noticias.NoticiaID = noticias.ID WHERE fotos_noticia.NoticiaID = '$idNoticia' AND noticias.ID = '$idNoticia'";
$query = mysql_query($sql);

flow

In Topic: Problemas Com Enquete

26/04/2009, 22:25

Ae,

Coloquei o error_reporting E_ALL e retornou isso na página confirma.php:

Notice: Undefined index: opcao in C:\Arquivos de programas\VertrigoServ\www\csl\confirma.php on line 12

Warning: Cannot modify header information - headers already sent by (output started at C:\Arquivos de programas\VertrigoServ\www\csl\confirma.php:12) in C:\Arquivos de programas\VertrigoServ\www\csl\confirma.php on line 27

Linha 12:

$id_op = $_POST["opcao"];

Linha 27:

header("Location: resultado.php?id=".$id);

Linha 6:

nada!

Sobre o q tu disse, retornou isso:

You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '' at line 1

Qual o erro da minha lógica?

Ah, mudei isso aqui:

$total_vts = $vts++;
$votos_ac = $nvotos++;

Pra isso:

$total_vts = $vts + 1;
$votos_ac = $nvotos + 1;

Falo

In Topic: Cadastro Com Foto

25/04/2009, 11:39

Ae parceiro,

Tenta usar move_uploaded_file() ao envés de copy()

flw

In Topic: Problemas Com Link

22/04/2009, 19:15

blz, resolveu!

vlew

IPB Skin By Virteq