curiouswebster
asked on
PHP - reading each parameter for the URL for a SQLite insert statement
I need to use PHP to grab the full URL from the browser, then creates an array with an item for each query parameter that was passed in.
I assume there are some pretty well written function I could just drop into my PHP code, then map to database columns and insert a DB row into SQLite.
I see I can pull values thusly:
echo "Name " . $_GET['name'] . " Company " . $_GET['company'];
But, I would like to see some boiler plate code, that builds an array, based on what has been found in the URL, and which is likely to be more robust than my code.
(BTW, what does the dot do between fields in the echo statement above?)
Thanks
I assume there are some pretty well written function I could just drop into my PHP code, then map to database columns and insert a DB row into SQLite.
I see I can pull values thusly:
echo "Name " . $_GET['name'] . " Company " . $_GET['company'];
But, I would like to see some boiler plate code, that builds an array, based on what has been found in the URL, and which is likely to be more robust than my code.
(BTW, what does the dot do between fields in the echo statement above?)
Thanks
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.