width ( 612 ); $I->write ( $reg_file_path ); $I = new Image ( $file_path ); $I->width ( 120 ); $I->write ( $thumb_file_path ); } $res = $db->insert_sql ( "INSERT INTO eventsphotos (`event_id` ,`title` ,`image`,`thumb`) VALUES ('" . $id . "','" . $title . "','" . $reg_file_name . "','" . $thumb_file_name . "')" ); //$db->print_last_query(); print ""; } if ($_POST ['update']) { $title = $_POST ['title']; $descrption = $_POST ['descrption']; $res = $db->insert_sql ( "update eventsphotos set `title`='" . $title . "' where id=" . $_GET ['pid'] ); //echo $sql; echo ""; } ?> Upload / Manage Photos of Event
select ( "select * from eventsphotos where event_id=" . $_REQUEST ['id'] ); //$db->print_last_query(); $p = 0; while ( $row = $db->get_row ( $res, 'MYSQL_BOTH' ) ) { if ($p % 7 == 0) echo ""; ?>
Existing Photos of Event

Remove Update

select ( "select * from eventsphotos where id=" . $_REQUEST ['pid'] ); //$db->print_last_query(); $getsql = $db->get_row ( $sqlPhotos, 'MYSQL_BOTH' ); } if (isset ( $_GET ['did'] )) { $db->delete ( "delete from eventsphotos where id=" . $_GET ['did'] ); echo ""; } ?>
New Photo
Photo Title
Upload Photo