Glossary - First Glitch

Please be gentle with me here, but can anybody please suggest to me why it
would be that the below code displays only the link_name and link_url fields
despite the SQL returning all of the desired fields in MySQL???

------START CODE------

mysql_select_db (biodexc_links);

$sol = 'SELECT link_name, link_url, links.description, rating FROM links,
category, rating, logo WHERE links.fk_category = category.id AND
links.fk_rating = rating.id LIMIT 0, 30 ;';

$result = [at] mysql_query ($sol);

if ($result) {
while ($row = mysql_fetch_array($result, MYSQL_NUM)){
echo "<tr><td>
$row[0]</td></tr>
$row[1]</td></tr>\n";}
mysql_free_result($result);
} else {
echo 'failure';
}

mysql_close();

------END CODE------

Kye.
Kye [ Mi, 10 Oktober 2007 16:20 ] [ ID #1841372 ]

Re: Glossary - First Glitch

Do you ever have those days where you REALLY wish that you had just quietly
muddled along and not asked a blatantly stupid question???

After lots of thumping my head on the wall I realised that I was only
processing two rows hence the two results.

Will somebody please quietly take me out the back and put me out of my
misery now?

--
Yours Sincerely
Kye
Kye [ Do, 11 Oktober 2007 13:17 ] [ ID #1842508 ]
PHP » alt.php » Glossary - First Glitch

Vorheriges Thema: Re: If you people would STOP feeding....
Nächstes Thema: What is the meaning of the dots (.)