Why doesn't this PHP execute?
- by cam
I copied the code from this site exactly: http://davidwalsh.name/web-service-php-mysql-xml-json as follows,
/* require the user as the parameter */
if(isset($_GET['user']) && intval($_GET['user'])) {
/* soak in the passed variable or set our own */
$number_of_posts = isset($_GET['num']) ? intval($_GET['num']) : 10; //10 is the default…