FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » How best to print an array to table?
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: How best to print an array to table? [message #178255 is a reply to message #178251] Fri, 25 May 2012 03:27 Go to previous messageGo to previous message
richard is currently offline  richard   
Messages: 213
Registered: June 2013
Karma:
Senior Member
On Thu, 24 May 2012 18:28:27 -0400, richard wrote:

> Ok so here's the quick and dirt simple code:
>
> <?php
>
> $Alist=array (
>
> "cover"=>"images/A/A001.jpg",
> "aname"=>"The A Team",
> "bname"=>"An Empty Glass",
> "artist"=>"SSgt Barry Sadler",
> "avideo"=>"A",
> "bvideo"=>"b",
> "label1"=>"[US] RCA Victor",
> "label2"=>"UK] RCA",
> "adate"=>"4-23-66"
> );
>
> print "<table border='1'>";
> print "<tr>";
> print "<td>hello</td>";
> print "</tr>";
> print "</table>";
>
> ?>
>
> I want to replace "hello" with $Alist "aname".
> How is that done correctly in this instance?

I think I've found the way to do this.

http://1littleworld.net/sample/test2a.php
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Problem setting Date field in MySQL
Next Topic: What is this attack trying to do?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Thu Nov 28 19:32:19 GMT 2024

Total time taken to generate the page: 0.04297 seconds