Get ID from Database when Posting with a HTML Form


Posted on 16th Feb 2014 07:03 pm by admin

I have a form I am submitting to a MySql database. Each product has an ID # attached to it that auto_increment.

I need to pull the auto incremented ID # for the entry I just posted onto the page so the person who added it can "Edit" the entry.

How do I get that selected? I want to pull it from the database after it is inserted and make it into a hyper link, but only for 1 entry..I can't get it figured out...

If anyone can help it would be greatly appreciated!
Thanks

77 Like 41 Dislike
Previous php-forum Next php-forum
Other php-forum

PHP search multiple input field box help
I am having a problem with my search script. At current it will simply search by a selected date whi

Login Issue's
Code: <?php
$file = fopen('user.txt', 'r');

/* Set login to false initially */

Web Application Recipe
Hi Guys!

I am working with the Web Application recipes. I am currently working on the sen

Sub-domains & calling unique content
Hello,

Is there a way use something similar to the $_GET function for a sub-domain? I to be a

add 20 000 to the rowcnt
Hi ...
I need to add 20 000 to the row count but just cant find a way to do this i am new to php

How to store checkbox array in a session, and then be able to add to it?
I'm trying to store an array of checkbox values into a session array, sort of like a shopping cart,

Connecion issue
Hi,

For some reason, I keep getting this error when trying to connect:

Warning: mysql_

FROM_UNIXTIME($phpdate);
Hello,

I tried to use this :

$date = FROM_UNIXTIME($phpdate);

ANd I was t

why aint this working?
i have this code:

Code: $num = 250;
$count = ($num - $rcount);

echo $rc

need help with this contact form
I made this form and I need it to read the data and write the data to a table and its not working ca

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash