troubleshooting Question

PHP - reading each parameter for the URL for a SQLite insert statement

Avatar of curiouswebster
curiouswebsterFlag for United States of America asked on
Web DevelopmentDatabasesPHPWeb Languages and StandardsScripting Languages
4 Comments4 Solutions20 ViewsLast Modified:
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
ASKER CERTIFIED SOLUTION
Join our community to see this answer!
Unlock 4 Answers and 4 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 4 Answers and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros