Name: Anonymous 2013-05-29 3:04
Hi, /prog/, first time poster here. I'm new to programming, actually I'm just a farmer a bit interested in IT. So I want to make this website where you could compare different kinds of combine harvesters.
I already created a MySQL database which has 63 columns and about a 1000 rows.
I tried basic things and it works, but when I want to do intermadiate things I get stuck.
So I want to make something like this:
http://www.dpreview.com/products/compare/side-by-side?products=nikon_d90&products=nikon_d3&products=nikon_d4&sortDir=ascending
Firstly, what is a best way to get multiple $_GETs with the same name (in this case "products")?
Secondly, what is a best way to dislay results like in DPreview link?
This kind of code is short and does it's job pretty well:
>while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['Make'] . "</td>";
echo "<td>" . $row['Model'] . "</td>";
echo "<td>" . $row['FuelTank'] . "</td>";
echo "</tr>";
}
But when I add aditional product to compare I want a new column, and not a new row.
Hope you guys are helpful.
I already created a MySQL database which has 63 columns and about a 1000 rows.
I tried basic things and it works, but when I want to do intermadiate things I get stuck.
So I want to make something like this:
http://www.dpreview.com/products/compare/side-by-side?products=nikon_d90&products=nikon_d3&products=nikon_d4&sortDir=ascending
Firstly, what is a best way to get multiple $_GETs with the same name (in this case "products")?
Secondly, what is a best way to dislay results like in DPreview link?
This kind of code is short and does it's job pretty well:
>while($row = mysqli_fetch_array($result))
{
echo "<tr>";
echo "<td>" . $row['Make'] . "</td>";
echo "<td>" . $row['Model'] . "</td>";
echo "<td>" . $row['FuelTank'] . "</td>";
echo "</tr>";
}
But when I add aditional product to compare I want a new column, and not a new row.
Hope you guys are helpful.