- Hmmm… » »
- « « Friday Cat Blogging
Friday, February 20, 2009
I Have Been Writing!
Just not in English, not really.
Here:
<table border=”0″ padding=”5″>
<tr>
<td><strong>Book ID</strong></td>
<td><strong>Author</strong></td>
<td><strong>Title</strong></td>
<td><strong>Review</strong></td>
</tr><?php
// display results$b = 1;
$r = 1;
WHILE ($row = mysql_fetch_assoc($result))
{
?>
<tr>
<td><input type=”text” name=”book_ID<?php echo “$r”; ?>” maxlength=”5″ size=”5″ value=”<?php echo ($row[‘book_ID’]); ?>” /></td>
<td><?php echo ($row[‘FirstName’]); ?>
<?php echo ($row[‘LastName’]); ?> </td>
<td><?php echo ($row[‘Title’]); ?> </td>
<td><input type=”text” name=”Review<?php echo “$r”; ?>” maxlength=”155″ size=”40″ value=”<?php echo ($row[‘Review’]); ?>” /></td>
</tr>
<?php
$r++;
}
?>
</table>
Is that a thing of beauty or what?
Even better, it works perfectly.
Now I just need to write the update queries for it.