Hi,
Please see the code block.
PHP Code:
if($_GET['activate_id']!="" && $_GET['email']!="")
{
$q="select * from tbl_subscriber_newsletter where email='".$_GET['email']."' and activation_code='".$_GET['activate_id']."'";
$r=mysql_query($q);
When I run the script I have I get this error:
Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /****/index.php on line 9
|
I believe the query has some error. Could some one help me correct the query:
PHP Code:
$q="select * from tbl_subscriber_newsletter where email='".$_GET['email']."' and activation_code='".$_GET['activate_id']."'";