Jump to content
Sign in to follow this  

Restringir emails [Resolvido]

Recommended Posts


Página mostraremails.php

$id = $row['idemail'];
$categoria = $row['categorian'];

echo "<th <a href='enviaremail.php?id=$id&&categoria=$categoria'>Enviar</a>";

Ele detecta qual é o ID seleccionado e detecta qual é a sua categoria. Agora na pagina enviaremail.php tenho:

$categoria2 = $_GET['categoria']; 
$id2 = $_GET['id'];
$query2 = mysql_query("SELECT * FROM email WHERE categorian = '$categoria2' and idemail = '$id2'")or die("SELECT Error: " .mysql_error());

Contudo, eu se enviar para mim o email, recebo sempre dois emails, com as duas categorias, ou seja não me restringe a categoria ao email.

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.