$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
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.