I am having an issue with this code. Basically I want it to read the business owner name and then see if it matches with the user’s username.
[php]$qBusiness = mysql_query(“SELECT businessOwner FROM businesses”);
while($aBusiness = mysql_fetch_row($qBusiness))
if($aBusiness == mysql_real_escape_string($_SESSION[‘username’]))
echo “You own a business!”;
echo “You don’t own a business!”;
No error message is being thrown at all, it shows “You don’t own a business!” if I have a business or not. It’s getting really annoying.