(solved) Where with session

lopezio 18 Nov, 2011
Hi
I need to set a where with a session variable but I get error
I write the following in where

where Username=$session->get('username');

Here is the solution

in where write
<?php
$leao=$session->get('username');
echo "WHERE Username='$leao'";
?>
This topic is locked and no more replies can be posted.