width ( 560 ); $I->write ( $reg_file_path ); $I = new Image ( $file_path ); $I->width ( 171 ); $I->write ( $thumb_file_path ); } $res = $db->insert_sql ( "INSERT INTO photos (`album_id` ,`title` ,`descrption` ,`image`,`thumb`) VALUES ('" . $id . "','" . $title . "','" . $descrption . "','" . $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 photos set `title`='" . $title . "',`descrption`= '" . $descrption . "' where id=" . $_GET ['pid'] ); //echo $sql; echo ""; } ?> Upload / Manage Photos of Album
select ( "select * from photos where album_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 Album

Remove Update

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