I'm trying to create a database with info scraped from the url inside the code. What should I do next? I'm still learning PHP. Appreciate the help, thanks.
<?php
// create a new cURL resource
$ch = curl_init();
// set URL and other appropriate options
curl_setopt($ch, CURLOPT_URL, "www.autotrader.ca/a/trucks_vans/Used/all/all/all/?prv=Ontario&r=40&cat2=11%2c9%2c10&lloc=Ontario&adr=Toronto%2c+ON&cty=Toronto&ctr=Canada&vpt=43.3067741394043%2c-80.1572952270508%2c43.9995574951172%2c-78.6081008911133%2c&dftC=True&rprv=True&oRng=0%2c200000&st=7");
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Windows NT 6.1; WOW64; rv:9.0.1) Gecko/20100101 Firefox/9.0.1');
curl_setopt($ch, CURLOPT_HEADER, false);
// grab URL and pass it to the browser
$xml = curl_exec($ch);
//simpleXml = simplexml_load_string($xml);
// close cURL resource, and free up system resources
curl_close($ch);
echo $xml;
//echo $simpleXml;
?>