Hello,
I have a variable named ‘link’ that’s being passed through GET (URL from previous page) that I need to insert into my SQL db. Something like this:
$ID_workshop = $_GET['link'];
$form_vars = array('ID_num','workshop','comment','ID_workshop');
How do I get the value of $ID_workshop into the field ‘ID_workshop’ in the db? I’ve tried every combination of single and double quotes that I can think of.
$form_vars is being used to insert into the db. That’s why I can’t use the $ID_workshop directly - I need whatever value it’s holding so I can insert ‘ID_workshop’.
Or is there another way to to do this?
Thanks