Hallo iedereen,
Na het uploaden van foto's moet men een scherm voor zich krijgen met de geuploade foto's. Het foto systeem werkt alleen het updaten van bijvoorbeeld de titel en de beschrijving werkt nog niet. Ik laat de foto's tevoorschijn komen door een fetch array. Hoe kan ik al deze foto's d.m.v. de knop 'Save' updaten in de database?
<?
$query = "SELECT * FROM photos WHERE `album` = '{$_GET['album']}' order by id ASC";
$result = mysql_query($query);
if ($result && mysql_num_rows($result) >= 1) {
while($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo'<div style="float:left; width: 595px; border:1px solid grey; margin-top: 20px;">';
echo'<div style="float:left; width:589px; height:20px;background:#CFCFCF; padding:3px;border-bottom:1px solid grey;">Title <input type="text" name="title" value="'.$row['title'].'" /></div>';
echo'<div style="width:300px; float:left; margin-top:3px;"><img src="http://globalzapper.com/login/userpictures/'.$row['album'].'/'.$row['name'].'.jpg" width="290" style="margin-left:3px;"/></div>';
echo'<div style="width:140px; float:left; margin-top:3px;"><textarea name="description" cols="34" rows="12">'.$row['description'].'</textarea></div>';
echo'<div style="width:583px; float:left; margin-top:3px; padding:3px;"><i>Update later the location and coardinates of this picture</i></div>';
echo'<input type="hidden" value="'.$row['id'].'" name="id" /></div>';
}
} else {
echo '<i>There are no trips yet.</i>';
}
?>
Ik hoop dat iemand mij kan helpen! Alvast bedankt!
1.751 views