Forum Moderators: coopster
I didn't use column names such as F1 because the table is a width x height table which I need to perform mathematical functions on in order to obtain a price. The code I used is;
$sql = "INSERT INTO vert_band_a SET
id='$id',
`50`='$fifty',
`70`='$seventy',
`90`='$ninety',
`110`='$oneten',
`130`='$onethirty',
etc....
The numbers represent cm's and are the headers for my columns. The $id represents cm's in the vertical column, that way I can return a price for example of 70cm x 70cm. As you can see, the price list I am working with is in bands.
I'm sure there's a better way of doing it and I hope you can enlighten me, but for now i'm bigged up that it works at all :)