here's what I have:
Code: Select all
<?php
for($i=1;$i<$_POST['scrollpos']+1;$i++){
$sql = "INSERT INTO My_Table VALUES (".$m_id.",".$_POST['crs$i'].",'y',0,'blah',0)";
$result = mysql_query($sql, $db)
or trigger_error(mysql_error(),E_USER_ERROR);
}
?>Code: Select all
<?php
for($j=1;$j<=$getpl["tournamentplayernum"];$j++){
mysql_query("insert into tour_players (
tournamentid,
teamid,
playername,
ipadd,
todaysdate
)
values
(
".$_GET["id"].",
".$_POST["teamid"].",
'".mysql_escape_string($_POST["player$j"])."',
'".$_SERVER["REMOTE_ADDR"]."',
now()
)
")
or trigger_error("could not insert to players table".mysql_error(),E_USER_ERROR);
}
?>can someone assist here?
I'm at a complete loss???
thx,
Burr