Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Re: I need to put this in a table
Old 06-27-2010, 10:23 PM Re: I need to put this in a table
Junior Talker

Posts: 3
Trades: 0
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-Transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"/>
<title>Teas of the World!</title>
</head>
<body>
<?php // Script 10.6 - Teas of the World.php
// This function displays a four cell table.
function tea($types) {

$types = array ("Chinese Green", "Japanese Red", "Korean Black", "British White");

for ($cell = 0; $cell < 4; $cell++) { // Displays the cell count.
echo "<td>".$types[$cell]."</td>";

}

}

?>

</body>
</html>
canadian_angel is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-28-2010, 04:32 AM Re: I need to put this in a table
Phunk Rabbit's Avatar
Ultra Talker

Posts: 255
Name: John Nerush
Location: Milton Keynes, UK
Trades: 0
Please try to explain your goal.
__________________

Please login or register to view this content. Registration is FREE

Learn professional skills from professional people, from $6.50 a month.
Phunk Rabbit is offline
Reply With Quote
View Public Profile Visit Phunk Rabbit's homepage!
 
Old 06-28-2010, 12:06 PM Re: I need to put this in a table
Junior Talker

Posts: 3
Trades: 0
I need help putting the function into a table, I have tried so many times and it just doesnt wanna work for me.
canadian_angel is offline
Reply With Quote
View Public Profile
 
Old 06-28-2010, 02:19 PM Re: I need to put this in a table
mgraphic's Avatar
Truth Seeker

Latest Blog Post:
JAMISONTUNES
Posts: 2,918
Name: Keith Marshall
Location: Connecticut
Trades: 0
There are several things from your example as to why nothing is being placed in a table. The output code block is placed inside a function, which is never called. The tags for table and tr are also not defined in the HTML.
__________________

<mgraphic /> - I don't have a solution but I admire the problem.
mgraphic is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Re: I need to put this in a table
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13059 seconds with 12 queries