Hi, hopefully this isnt a really obveous question, but im only learning, so please forgive me!
I'm setting up an online system to allow people to register for a conference online . Basically i need to be able to collect a load of information, store it in Mysql database, then pass the info from the PHP page to a secure server (that bits sorted) then after it's gone through the server i need to be able to call the session id and add further info to that particuar data row (so that we know the person has paid succesfully)
So at this point i need to know how to set a session id in the mysql database that is a random number that is unique so that when the user gets out the other side it can locate the correct data on the database. I've been told that session id creates a random 32 digit number, but being a complete beginner, have no idea how to write the PHP that will add that to my data base. thats the first problem the second is how to call the row back afterwards, and add to a particular field.
Any help would be greatly appreciated!!!
Cheers,
Tim
PHP session_id and mysql database
Moderator: General Moderators
First you need to start out with the form to collect the information.
Then you need the script to process that information and insert it into your database.
$PHPSESSID is the variable you are looking for to get the session id.
To update the data based on the $PHPSESSID you will need another form and a script the will process the information to update.
Hope this helped point you in the right direction.
Then you need the script to process that information and insert it into your database.
$PHPSESSID is the variable you are looking for to get the session id.
To update the data based on the $PHPSESSID you will need another form and a script the will process the information to update.
Hope this helped point you in the right direction.
cheers but...
Thanks for that, but being a real beginner, i have no idea how to generate that script!!! Any chance you could give ame an example???
Cheers,
Tim
Cheers,
Tim