just at a quick glance I see a couple things I would try changing

at the end of your "for" loop you have a closing brace but I don't see an
opening brace anywhere, that should throw things. Also in the conditions of
your "for" loop you have "++$count" which I haven't really seen before.
Would the standard "$count++" be better?




""twopeak"" <[EMAIL PROTECTED]> wrote in message
9ebrhn$a39$[EMAIL PROTECTED]">news:9ebrhn$a39$[EMAIL PROTECTED]...
> this works, but it doesn't like to retrieve the data, the intention of
this
> is that it just returns all the links...
> but it loves to return errors...
>
> ===========================================
> <?php
> $link = mysql_connect($path,$log,$pass) OR DIE("can't connect");
> mysql_select_db("blackstars", $link) or die( "can't select db");
>
> $query = "SELECT * FROM persoon";
> $result = mysql_query($query);
> for ($count = 1; $row = mysql_fetch_object ($result) ; ++$count)
>
>
>  echo "$count : $row->voornaam , $row->achternaam <br>";
>  }
> ?>
> ===================================================
>
>
>
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>



-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to