我有這樣的:多個陣列foreach循環的MySQL
foreach($textnode as $key => $value) {
$value = stripslashes($value);
$value = mysql_real_escape_string($value, $con);
mysql_query("INSERT INTO paragraphs (textnodes, url)
VALUES ('$value', '$url')");
}
我的表有三列(textnodes,ytext和URL)
textnode和ytext都陣列.....我可以做這對於兩個數組?
你是什麼意思,對於兩個數組? – Ikke
我想知道如何將textnode數組和ytext數組中的值添加到它們各自的行中。 – re1man