Jump to content

offset error


divinedesigns1

Recommended Posts

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

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

<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

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

  • 2 weeks later...

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...