[help] WP code problem

Seedk

Newbie
Joined
May 21, 2012
Messages
6
Reaction score
1
Can someone tell me if this code has an error inside :
Code:
if ($user->created > 1337524548){if(zile_reg() >= 0) {
echo '<h1>Introducere</h1>';


}
}

This is working but the code above not :
Code:
if ($user->created < 1337524548) { foreach ($view->result as $index => $result) {
$term = taxonomy_get_term($result->term_data_tid);
if (!isset($taxonomy[$result->term_data_tid])) {
$taxonomy[$result->term_data_tid] = $term;
$counts[$result->term_data_tid] = 0;
}
$counts[$result->term_data_tid]++;


}
}

I am talking about this line :
Code:
if ($user->created > 1337524548)
 
Can someone tell me if this code has an error inside :
Code:
if ($user->created > 1337524548){if(zile_reg() >= 0) {
echo '<h1>Introducere</h1>';


}
}
At least no syntax error. Try to print_r, echo or var_export your variables - is $user->created greater than 1337524548? Does zile_reg() return a value greater than -1?

And try to use better titles for your postings... ;)
 
Back
Top