Newbie here need help about a loop

The following codes are the the codes in the template, it shows a number of posts in the featured section, the number is fetch from [“featuredPostCount”].

I only want it to show one post through changing

if (have_posts()) : while (have_posts()) : the_post(); $i++;

how can i do that?

<?php
					query_posts('cat='.$suvi_options["featuredCatId"].'&showposts='.$suvi_options["featuredPostCount"]);
					if (have_posts()) : while (have_posts()) : the_post(); $i++;
				?>

Nobody?

I don’t fully understand what you mean,

<?php
query_posts(‘cat=’.$suvi_options[“featuredCatId”].‘&showposts=1’);
if (have_posts()) : while (have_posts()) : the_post(); $i++;
?>

ie just forcing the post count to be 1 work?