这是我的代码
echo '<input type="submit" name="submit">';
我正在使用此查询从另一个表中获取数据
if($_POST['submit'])
{
$sql = mysql_query('SELECT q.username, q.firstanme,q.lastname FROM quizgroup q');
foreach($sql as $s)
{
$username = $s->username;
$firstname = $s->firstname;
$lastname = $s->lastname;
$sql = mysql_query('INSERT INTO user(username,firstname,lastname) VALUES('.$username.','.$first.','.$last.')');
}
}