Stupid Query-thinking?

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Well Erwin,

thanks a lot for your response,
but i don't quite get it. You told me my query
was bad, but it works like it should (not that
it means that it's the best then..) except
for the counting animals part. You told me
to loop over $result, but i really don't know
what you mean with that...

I tried your links, but one of them, which i
think to be the most important, appears to be dead.

So if someone could please telle me more about the
loop, and the possible error in the query...

Thanks a load.


Re: Stupid Query-thinking?

Please, please, please try a better newsreader.
One that, at least, allows you to quote previous posts and keeps the
references to them.
If your provider does not make newsgroups available, may I suggest you
make an account at / and use it?

knoak wrote:
Quoted text here. Click to load it

Erwin gave you a very good explanation of why your query didn't work.
Read it again.

Quoted text here. Click to load it

Standard DB stuff. All examples everywhere do it the same way:

$result = mysql_query($sql_select_query);
while ($row = mysql_fetch_assoc($result)) {
  echo $row['id'], "\n";

Quoted text here. Click to load it

They work here.
But there's Google.

Try googling for "SQL Tutorial" :-)

Mail to my "From:" address is readable by all at /
== ** ## !! ------------------------------------------------ !! ## ** ==
may bypass my spam filter. If it does, I may reply from another address!

Site Timeline