divinedesigns1 Posted July 26, 2012 Author Share Posted July 26, 2012 You have to do it manually. you need to know which user id you have to insert and then you will insert that id in album table.you can use session to insert user id. you will set the id when user succefully logged in.yeah the manual part that worked, so ill try the session, thanks birbal Link to comment Share on other sites More sharing options...
divinedesigns1 Posted July 26, 2012 Author Share Posted July 26, 2012 There are functions to return the autonumber ID of a record that was just inserted. http://www.php.net/m...i.insert-id.phphttp://www.php.net/m...l-insert-id.php thanks jsg, ill take a look at those links right now Link to comment Share on other sites More sharing options...
divinedesigns1 Posted July 26, 2012 Author Share Posted July 26, 2012 <a href=\"view_album.php?album_id=" . $row['album_id'] That mean...<?PHP $sql = "SELECT * from photo";if (isset($_GET['album_id']))//<----------$_GET['album_id']{$result1 = mysql_query("select * from album where album_id='".$_GET['album_id']."'") or die("Error retrieving records from the database: " . mysql_error());$sql = $sql." ".$_GET['album_id'];while( $row = mysql_fetch_assoc($result1)){/* Show Album Description *//* Show Admin part To Insert more Photo*/ }} /* If want pagination see my last code copy my function to function.php and include it*/$result2 = mysql_query($sql) or die("Error retrieving records from the database: " . mysql_error());$i = 0; // Row counterecho "<table>";while( $row = mysql_fetch_assoc($result2)){/* Do It Like First Code *//* Show Photo *//* Show Admin part To Update/Delete Photo*/} ?> not to sound rude or anything but kindly do not right the codes for me, once again, i wouldnt learn anything if i have you writing the codes, kindly do like birbal and justsomeguy and give tips or hint or links, thank you Link to comment Share on other sites More sharing options...
kanchatchai Posted July 26, 2012 Share Posted July 26, 2012 (edited) How to Insert...1. http://www.w3schools...toincrement.asp2. Insert Code With out ID Edited July 26, 2012 by kanchatchai Link to comment Share on other sites More sharing options...
kanchatchai Posted July 27, 2012 Share Posted July 27, 2012 i'v seen Site that resize image.May b You can use for your project.http://www.white-hat-web-design.co.uk/blog/resizing-images-with-php/ Link to comment Share on other sites More sharing options...
divinedesigns1 Posted July 27, 2012 Author Share Posted July 27, 2012 i'v seen Site that resize image.May b You can use for your project.http://www.white-hat...mages-with-php/ dude your confusing this topic Link to comment Share on other sites More sharing options...
kanchatchai Posted August 7, 2012 Share Posted August 7, 2012 I think now you would want it.can make Thumbnail image. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now