这是代码:
$sql = "SELECT * FROM blad1 order by RAND() LIMIT 6";
$result = mysql_query($sql) ;
$row = mysql_fetch_array($result);
$Vnaam = $row["Voornamen"];
$sql1 = "SELECT * FROM blad1 order by RAND() LIMIT 6";
$result = mysql_query($sql) ;
$row = mysql_fetch_array($result);
$Anaam = $row["Achternamen"];
$sql2 = "INSERT INTO duivengebruiker (Duif1) VALUES ('$Vnaam $Anaam')";
mysql_query($sql2);
$sql = "SELECT * FROM blad1 order by RAND() LIMIT 6";
$result=mysql_query($sql) ;
$row=mysql_fetch_array($result);
$Vnaam = $row["Voornamen"];
$sql1 = "SELECT * FROM blad1 order by RAND() LIMIT 6";
$result = mysql_query($sql) ;
$row = mysql_fetch_array($result);
$Anaam = $row["Achternamen"];
$sql2 = "INSERT INTO duivengebruiker (Duif2) VALUES ('$Vnaam $Anaam')";
mysql_query($sql2);
这将创建 2 行并将第一个结果放在第一行的第一列中,并将第二个结果放在第二行的第二列中。我只想要两列都填满的 1 行。我该怎么做?大概是件容易的事。