I have a small problem and i want to check it out with you guys and gals...
So here goes:
I have a table in the database with a boolean field and a varchar field.
When i check for a record i this table, first i will check if the boolean field is true or not, and then if the boolean value is true i display the varchar. If the boolean is false, i do not display the varchar field which will in this case contain NULL.
In my code iam not able to check for boolean value at all...
Iam not able to figure out why...
Code: Select all
if($tabledetail->fieldsї0]){
print '$tabledetail->fieldsї1]';
}
else{
print 'Access denied';
}Code: Select all
if($tabledetail->fieldsї0]=='t'){
print '$tabledetail->fieldsї1]';
}
else{
print 'Access denied';
}Nothing works.
Can some body tell me how to check for the true value of boolean stored in the database?
Iam using ADODB database abstraction layer with PHP and Postgres.
Rgds