i am printing the values using ajax. Can i store those value in database?
jhilmil123 0 Newbie Poster
Recommended Answers
Jump to PostYou basically need another ajax call passing values to a php script that will insert/update database.
Jump to PostIf I understood: you get data about courses with batchinfo1.php through ajax call. The result is displayed in a html table. Now you want to save some of this info into some other database table, right? Which data would you like to save (some of it or all of it)? …
Jump to PostIn the batchinfo1.php that generates the table, give the table an ID so you can refer to it later:
echo "<table id='result-table' border='1'>
You did not answer my question about what will triggers the saving of data into database. I assume here that it will be …
Jump to PostIt only ocurred to me after preparing the previous post: whay do you want to save data that is already in the database to another table? Are you sure your data is normalized properly? Or, maybe you could do it oin the batchinfo1.php script?
Jump to PostRepeating my question: what is the trigger to do insert? If there is no trigger other than displaying the table, then you can do it in the batchinfo1.php script. But this database would not be normalized in other words you will get duplicate values in the courseinfo and batchinfo tables …
All 23 Replies

LastMitch
jhilmil123 0 Newbie Poster

LastMitch
jhilmil123 0 Newbie Poster

LastMitch
broj1 356 Humble servant Featured Poster
jhilmil123 0 Newbie Poster
jhilmil123 0 Newbie Poster
jhilmil123 0 Newbie Poster
broj1 356 Humble servant Featured Poster

LastMitch
jhilmil123 0 Newbie Poster
jhilmil123 0 Newbie Poster
broj1 356 Humble servant Featured Poster
broj1 356 Humble servant Featured Poster
jhilmil123 0 Newbie Poster
broj1 356 Humble servant Featured Poster
jhilmil123 0 Newbie Poster
broj1 356 Humble servant Featured Poster
jhilmil123 0 Newbie Poster
broj1 356 Humble servant Featured Poster
jhilmil123 0 Newbie Poster
broj1 356 Humble servant Featured Poster
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.