that's what I've been trying to do, but it doesn't work:
here's some of the code:
i changed the SID to confirmid by the way, thought it was better name for the variable...
<?php
if (!$confirmid)
{
print("ERROR!!!");
}
$db = mysql_connect("localhost");
mysql_select_db("tempregs", $db);
$result = mysql_query("SELECT * FROM data WHERE id = '$confirmid'", $db);
$row = mysql_num_rows($result);
if ($row == 1)
{
print("Sorry, but you cannot sign up at the moment, for I am still beta-testing my services. Be patient\n");
}
mysql_close();
?>
then I use this link, for example:
http://localhost/confirm.php?confirmid=QfxucOhzpBtJLtvD
but nothing, that confirmid is in the mysql database, I've triple checked it but still it doesn't work like it's supposed to 😕
EDIT! I added the print("Error!!!"); function, and it always prints ERROR!!! no matter what. even though I copy an id value straight from my database and use the
http://localhost/confirm.php?confirmid=confirmidvalue
link, it still doesn't work... so the problem seems to be in the URI... 😕