$table = "<table>\n";
for ($i = 0; $i < sizeof($rounds); $i++) {
$table .= "<tr><th>Week #: " . ($i + 1) . "</th><th>Match</th><th>Away</th><th>Referee</th></tr>\n";//table headers
foreach ($rounds[$i] as $r ) {//iterate through an array
$table .= "<tr> <td> Day :</td> <td> $r </td> <td>".$r["Away"]."</td><td> </td></tr>\n";
//i want to store values of this table in a database table
}
}
Jara_1
0
Newbie Poster
Recommended Answers
Jump to PostSo.. the problem is your question is very vague. Instead, I will walk you through how to find your answer on your own and hopefully that will help you.
First, you need to understand the basics of how HTML/Form Data work. You can find that here:
All 2 Replies
Gabriel_13
0
Newbie Poster
ryantroop
177
Practically a Master Poster
alan.davies
commented:
Heh heh, sponsored by w3s are we?
+2
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.