Jump to content

[SOLVED] First record in array not showing


loquela

Recommended Posts

Hi there,

 

I have the following query:

 

...
$row_selected_topics = mysql_fetch_assoc($selected_topics);
$totalRows_selected_topics = mysql_num_rows($selected_topics);

while ($row_selected_topics = mysql_fetch_assoc($selected_topics)) 
{
$selectedtopics[] = $row_selected_topics['topic_id'];	
}

$matchtopics = implode("|",$selectedtopics);

echo ($matchtopics);

 

For some reson, the first record (or is it the last?) is always omitted. Why is this? And how do I fix it?

Many thanks in advance.

 

S.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.