Nqon 0 Report post Posted May 11, 2005 I have this:while($data_inn_n1 = mysql_fetch_array($db_query_inn_n1)){ echo "<a href='?side="; echo $data_inn_n1['side']; echo "' class='meny'>» "; echo $data_inn_n1['tittel']; echo "</a>";and lets say i have this in the database, first is 'side', second is 'tittel':home - Homepageabout - About Usguide - Guideblah - Blahcontact - Contact Usthen it will show in the print out:<a href '?side=home' class='meny'>About Us</a><a href '?side=guide' class='meny'>Guide</a><a href '?side=blah' class='meny'>Blah</a><a href '?side=contact' class='meny'>Contact Us</a>For some stupid reason it always skips the first! Its really annoying! Can someone understand why its like that? Share this post Link to post Share on other sites
signatureimage 0 Report post Posted May 11, 2005 Dear Nqon, Please show the contents of $db_query_inn_n1 so that we know what the SQL statements are. Share this post Link to post Share on other sites
vhortex 1 Report post Posted May 13, 2005 Dear Nqon, Please show the contents of $db_query_inn_n1 so that we know what the SQL statements are. <{POST_SNAPBACK}> Some programmers always made this small error when using the LIMIT keyword.. Some of those I have seen used this thing at the end LIMIT 1, any_number which skips the first thing it sees.. To get the better idea and a much exact answer.. we need to know what the query is.. Nqon, please include the query itself next time.. Share this post Link to post Share on other sites
Hercco 0 Report post Posted May 15, 2005 There is no other options than an semantic error in the query (limit 1, X) or you have called mysql_fetch_array once earlier. Share this post Link to post Share on other sites