Quote:
Originally Posted by assassingod
Try replacing:
PHP Code:
$ jl_comments = if($j_comments = 1){ echo("$j_comments comment") } else if($j_comments >= 2) { echo("$j_comments comments") { else{ echo("") };
with
PHP Code:
$jl_comments = if($j_comments = 1) { echo("$j_comments comment"); } else if($j_comments >=2) { echo("$j_comments comments"); } else { echo(""); };
Also, I dont think you can use an if statement when declaring a variable but im not sure.
|
i thought the conditional was fine, i was more worried about the initial SELECT