RE: [PHP] how did this become an array?

2002-04-02 Thread Rick Emery
What I don't understand is how did $result_row become $result_row[0] and $result_row[1]? mysql_fetch_row() returns an array structure Also what does it mean to select max(thread) as thread, max(mesid) as mesgid? I have never used this as command before. max(x) returns the highest

Re: [PHP] how did this become an array?

2002-04-02 Thread RIVES Sergio
Hi, I am also a newbie in PHP, but your question is more a MySQL question I believe... : $sql = select max(thread) as thread, max(mesgid) as mesgid from discussionboard; This MySQL request gives you two informations : the maximum of the values of the two fields (thread and mesgid) of the table