hi
i made a php script with a activation link. but i can't get the variable to show when the link gets sent via email.
the hole thing works so:
1. user puts in data
2. data gets writen in database setting $acountactiv to NULL
3. user gets email with activations link to set $acountactivation to yes
now the problem:
<?php
include("config.php");
$abfrage = mysql_query ("FETCH idx FROM login WHERE userx = '$userx'");
$subjekt = "account activation";
$message = "Your activations link is:
http://blabla.com/activ.php?idx=$idx&accoutactiv=yes";
$from = "xxx";
$from1 = "xxx";
mail($email, $subjekt, $message, "From: $from <$from1>");
?>
email comes this way:
Your activations link is:
http://blabla.com/activ.php?idx=&accoutactiv=yes
but it should come:
Your activations link is:
http://blabla.com/activ.php?idx=$idx=123(or whatever)&accoutactiv=yes
i tried SELECT for FETCH
$userx is declared further up in the script
Have i to change the $message = "......." syntax ?