Hi,
Here is the contents of a php file I am writing:
require_once ('includes/mysql_connect.php');
$invitecode = $_GET["ic"];
$result = mysql_query("SELECT id FROM invitations WHERE status = 1");
if ($result == $invitecode) {
echo 'The result equals the invite code';
}
?>
I would like the script to see if the $_GET["ic"]; matches an id code inside the field "id". If it does, I would like it to echo 'The result equals the invite code'. How do I get this script to work?
Thanks in advance, I really appreciate it!
2006-08-23
07:10:03
·
1 answers
·
asked by
Anonymous
in
Computers & Internet
➔ Programming & Design