Jump to content

IF statment not working :s


jamesxg1

Recommended Posts

so $username != $comto

 

try use else and echo the values to debug:

 

<?php
if($username == $comto) {
echo("<a href='../main/DeleteComment.php'>Delete Comment</a>");
} else {
echo 'username = ' . $username . ' and comto = ' . $comto;
}
?>

 

 

username = jamesxg1 and comto =

 

thats all i get :S ^^

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.