Jump to content

if statement not returning true


summerpewp

Recommended Posts

I have a statement

 

$account = $_SESSION['account_id'];

$postedby = $account_id;

 

/*both echo out to the same number*/

 

if($account == $postedby){

echo "DELETE BUTTON";

}

 

i echo'ed out both $account and $postedby and both return 1 but the if statement fails to read as true.

 

HELP!!! :)

 

thanks in advance!

Link to comment
https://forums.phpfreaks.com/topic/224563-if-statement-not-returning-true/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.