| Subject: | Re: multiple update |
|---|---|
| From: | "jsteinmann" <webforumsuser@xxxxxxxxxxxxxx> |
| Date: | Fri, 20 Jun 2008 08:09:53 +0000 (UTC) |
| Newsgroups: | macromedia.dynamic.html |
also tried this...
if ((isset($_POST["submit"])) && ($_POST["submit"] == "form1")) {
$jid = $_POST['jid'];
$postdate = $_POST['postdate'];
foreach($_POST['jid'] as $key => $jid) {
$sql = "UPDATE jobs SET postdate='".$_POST['postdate']."' WHERE jid='$jid'
LIMIT 1";
if(mysql_query($sql)) $count++;
else die("Error in query:<br>$sql<br>");
}
}
|
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | multiple update, jsteinmann |
|---|---|
| Next by Date: | Swapping .FLV files with Spry, djbdjb |
| Previous by Thread: | multiple update, jsteinmann |
| Next by Thread: | Swapping .FLV files with Spry, djbdjb |
| Indexes: | [Date] [Thread] [Top] [All Lists] |