Posted: Thu Jun 24, 2004 7:15 pm
(no joy with MAX-FILE_SIZE removed)..
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?php
for ($i=0; $i<$num_results; $i++)
{
$row = mysql_fetch_array($result);
if ( is_int($i/2)){
echo "<tr bgcolor=#e0e0e0>";
} else {
echo "<tr>";
}
echo "<td valign=top>";
echo "<span>";
echo "<input type"text" name="title" class="dates" size="20" value="".htmlspecialchars(stripslashes($row['title']))."">";
echo "</input>";
echo "</span>";
echo "</td>";
echo "<td width=250 valign=top>";
echo "<span>";
echo "<textarea name="description" class="description2" rows=10 cols=50>";
echo htmlspecialchars(stripslashes($row['description']));
echo "</textarea>";
echo "</span>";
echo "</td>";
echo "<input type="hidden" name="image" value="".htmlspecialchars(stripslashes($row['photo_url']))."">";
echo "<input type="hidden" name="entry" value="".htmlspecialchars(stripslashes($row['entry_id']))."">";
echo "<td valign=top>";
echo "<span class="img2"><img src="images/".htmlspecialchars(stripslashes($row['photo_url']))."" height=100 width=100 <br><br>
<input type="hidden" name="MAX_FILE_SIZE" value="100000"/><p>
<input class="artist" type="file" name="image1" size="25" />"; // HERE
echo "</td>";
echo "<td valign=top>";
echo "<span class="img2"><img src="images/".htmlspecialchars(stripslashes($row['photo_url2']))."" height=80 width=80 <br><br>
<input type="hidden" name="MAX_FILE_SIZE" value="100000"/><p>
<input class="artist" type="file" name="image1" size="25" />"; // HERE
echo "</td>";
echo "</tr><tr align=right><td colspan=7><input type="submit" value="Update"/>";
echo "</table>";
echo "</form>";
}
?>Code: Select all
<?php
echo "<td valign=top>";
echo "<span class="img2"><img src="images/".htmlspecialchars(stripslashes($row['photo_url']))."" height=100 width=100> <br><br><input class="artist" type="file" name="image1" size="25" />";
echo "</td>";
echo "<td valign=top>";
echo "<span class="img2"><img src="images/".htmlspecialchars(stripslashes($row['photo_url2']))."" height=80 width=80> <br><br>
<p>
<input class="artist" type="file" name="image1" size="25" />";
echo "</td>";
?>