I am trying to get the last inserted id to be displayed in alert box. Can anyone help me out.
I can echo it out but I want to display the ID in alert box and redirect once the user clicks ok. Thank you so much. I am a new php coder.
allenzims
0
Newbie Poster
Recommended Answers
Jump to PostYou do not include any code, so it's difficult to see what you've tried and how far or how close you've got.
In js, you can include php variables like this:var jsId = "<?=$id?>";
or full tags:
var jsId = "<?php echo $id; …
All 2 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.