[PHP] how did this become an array?

2002-04-02 Thread The PHP newbie


Hi,

I am trying to figure out a part of the PHP code which belongs to one of
the files that is responsible for operating a discussion group.

I was examining some of a part of the code which produces the total number
of messages and displays the subject of the message.

I encountered a part that looks like this:

mysql_select_db(discussionboard, $db)
   or die(Couldnot select database);

$sql = select max(thread) as thread, max(mesgid) as mesgid from
discussionboard;

$result = mysql_query($sql)
or die(Query failed);

$numrows = mysql_num_rows($result);

$result_row = mysql_fetch_row($result);
echocenterbNo of topics: $result_row[0]br
No of total messages: $result_row[1]/b


What I don't understand is how did $result_row become $result_row[0] and
$result_row[1]?

Also what does it mean to select max(thread) as thread, max(mesid) as
mesgid?

I have never used this as command before.

Thanks for any insight.

Peter



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] read file

2001-11-23 Thread PHP Newbie

hi,
i have a file with ips inside

192.168.1.1
192.168.1.2
...

now i must write that in a html table with php.
i think that is easy, but i'm a newbie and don't find anything how to do it.

please help me

thx

-- 
PHP General 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] Is it posible to embed scripts from other server?

2004-02-18 Thread The PHP Newbie
HI there!
 
Hope someone can help me with this: Is it posible to run a PHP script from a different 
server than the one requesting the script.?
 
I would like to know if u can do this with php, just like the Server Includes in CGI 
and if u have an example of how to do it.
 
I have a script in lets say www.myserverrightnow.com and this script needs to call the 
info from a script from  www.anotherserver.com, is there a way to stablish a 
connection between?
 
Thanks for ur help!
 
 
Regards,
 
Luis Soriano.


-
Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.