hi....i have some problem here...i'm making a form for ordering...what i want is when user click on form ordering button, there will be a form with reference number echo from database..in database i set the reference number as primary key and auto increment..somebody can help me to solve this problem??
erza26 0
Newbie Poster
Recommended Answers
Jump to PostIf the auto incremented value must match whats in the database then you will need to insert a row and then get the NEW ID (via ajax probably) using PHP's
echo mysql_insert_id();
You will therefore use UPDATE statements to modify the newly created row
All 4 Replies
Reply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.