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

Posted on 28th Aug, 2024
WayneAbson
????? ?????? ??????? ???? fashion.
?????? ??????? ??????? ????????.
?????? ????, ??????, ??????? ????.
?????????? ????? ??? ????????? ??????????.
https://emurmansk.ru/pub/2024-04-17-pozhar-na-murmanskom-shosse-vozle-kudrovo/
https://kazan.rftimes.ru/news/2024-06-03-v-aeroportu-kazani-vveli-ogranicheniya
https://ekaterinburg.rftimes.ru/news/2024-04-09-rok-gruppa-piknik-vozobnovit-gastrolnyy-tur
https://kazan.rftimes.ru/news/2024-06-03-v-aeroportu-kazani-vveli-ogranicheniya
https://ekbtoday.ru/news/2024-02-04-proverka-v-elitnoy-gimnazii-5-ekaterinburga/

Your Answer:

Login to answer
77 Like 41 Dislike
Previous forums Next forums
Other forums

count only commas outside parenteses
I have a sql table containing
id - query - query name
the first page contains a drop down men

losing session vars when arriving from an email link
Hi,

I've got a confirmation script made that sends an email with a link for a user to confirm

How to Detect it is public_html or httpdocs?
How to check whether it is cPanel or Plesk?

If it found public_html perform <?php incl

Variable Clash
In the past I've had variables clash. For example:

Code: <?php
$c = 5;
$ca

Displaying different page content, depending on the logged in user.
Hi all, I am new to ASP.net (and web development in general), and have a question about how I can di

Unable to customise toolbar in FCK
Quick fix: Conditional statement with an array
Hi, I'm getting the temperature value off of the Environment Canada website along with the icon file

Problem with "dynamic" index page
Hi. I have one question. In my index.php page I have this kind of code:
Code: // listaa sivut

parameter passing issue on function
Well I thought I had created a pretty slick web page, using ?page and $_GET to load pages which wher

Blank record injected into database
I always found several blank records inside my database, although $SESSION is required to insert the

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