Re: Newbie / Table Output

From: Date: Mon, 14 Oct 2002 16:17:01 +0000
Subject: Re: Newbie / Table Output
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119919@lists.php.net to get a copy of this message
first thing: <tr><td>cell content</td><tr> second: - make sure you have opened the file successfully: $content=file($weatherdata) or die('cannot open'); Anthony Ritter wrote:
I'm trying to output a table with rows that have size 1 borders from the URL listed below using the file() and count() functions. Any assistance would be greatly appreciated. Thank you. Tony Ritter ............................................ <? function getWeather($weatherdata) { $weatherdata; $content=file($weatherdata); foreach($content as $value) print("<TABLE BORDER=1 WIDTH=\"75%\" ALIGN=CENTER>"); print("<FONT FACE=\"arial\" SIZE=1>");
     if($i=0; $i<=count($value); $i++)
      {
       print("<TR>".$value."</TR>");
      }
print("</FONT>"); print("</TABLE>"); } } getWeather("http://www.nrcc.cornell.edu/cgi-bin/fcst?NY062"); ?>


« previous php.general (#119919) next »