How do I let a conditional block <div>, still have its content displayed, if its corresponding mysql database record merge block does not exist?
For example, here is the conditional div.
<div class="playerback">
[getmyvote;block=div;p1=[rangen.id]]
Hello, I am content being displayed.
</div>
|
$TBS->MergeBlock("getmyvote",$conn,"SELECT * FROM votes WHERE songid='%p1%' && userid='$logged[id]' ") ;
|
Here's the thing, if the database record merge block does not have a database record, if ic cannot pull one because it doesn't exist, the content inside the div (playerback class), it does not display.
Is there a way this omission of content inside the div can be avoided? I tried to use the noerr parameter added onto the template tag, but it didn't work.
Can there be a way to stop this content omission, like be a parameter for it?