Ok, first echo the query like,
PHP Code:
$sql = "SELECT Username,Email FROM sitelok WHERE Email='".$_SESSION['ses_slemail']."' AND Username='".$_SESSION["ses_slusername"]."'";
echo $sql;
query will be printed in the browser, copy the query and test it in your query browser (PhpMyAdmin etc) and see whether you get the correct result.
also check the session values
PHP Code:
echo '<PRE>'; print_r($_SESSION);
if there is any issue, correct it and try it.
__________________
There is no secret ingredient.
|