oh yeah, that would make sense....
but i tried that, and it still isn't inserting anything into the database..
I think it might have to do with the '%s' in the insert query, because I've never seen that before.. but as i said.. i'm still pretty new to this..
Here's my current code that still doesn't seem to work:
HTML snippit (so you get the idea):
<tr>
<td align=right><b>Venue:</b></td>
<td colspan=3><input name=data[1]['venue'] type=text size=50 class=box></td>
</tr>
PHP (once submit button is clicked):
$data = $_POST['data'];
for($i=0;$i<sizeof($data);$i++) {
if($data[$i]['venue']) {
$query = sprintf("INSERT INTO evr_tours VALUES ('', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s', '%s')",
$_POST['band_id'],
$data[$i]['date'],
$_POST['band'],
$data[$i]['venue'],
$data[$i]['city'],
$data[$i]['state'],
$data[$i]['time'],
$data[$i]['price'],
$data[$i]['misc']
);
mysql_query($query) or die(mysql_error());
}
}