Get value from table row in to costume view marquee behavior="scroll" direction

I try to get value from table row in to costume view with code marquee behavior=“scroll” direction to get a scroll text effect from that row value
But With my current code give me a undefined variable ,is there any way to archive this?
This is my code
<?php echo $modeldata['campaign_title'];?>

@Andreia please note $modeldata is a variable that’s used in page events not list pages…$data[’ '] is the right variable to use in list pages