PDO Update Multiple Rows
Not too sure where I'm going wrong with it:
PHP:
<form method="post" action="#">
<th>Story ID</th><th>Title</th>
<?php
while ($row = $statement->fetch(PDO::FETCH_ASSOC)) {
echo "<tr><td><input type=\"text\" name=\"story_id[]\" value=\"" . $row[‘story_id’] . " \"size=4></td><td><input type=\"text\" name=\"title[]\" value=\"" . $row[‘title’] . "\" size=50><input type=\"hidden\" name=\"id[]\" value=\"" . $row[‘id’] . "\"><input type=\"hidden\" name=\"siteid[]\" value=\"" . $row[‘siteid’] ….
PDO Update Multiple Rows
See original post by scottlpool2003
Leave a Reply
You must be logged in to post a comment.