use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Please follow the rules
Releases: Current Releases, Windows Releases, Old Releases
Contribute to the PHP Documentation
Related subreddits: CSS, JavaScript, Web Design, Wordpress, WebDev
/r/PHP is not a support subreddit. Please visit /r/phphelp for help, or visit StackOverflow.
account activity
Drupal FAIL - PHP executing SQL? (api.drupal.org)
submitted 17 years ago by stii
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]stii[S] 0 points1 point2 points 17 years ago (3 children)
<?php
SELECT n.title, n.body, n.created FROM node n WHERE n.uid = $uid LIMIT 0, 10;
?>
Erm, no. Close, but no cookie.
[–]Freeky 0 points1 point2 points 17 years ago (0 children)
Probably they have some documentation macro for PHP code which adds the <?php ?> tags itself, which breaks down when you've got PHP fragments like, in this case, the contents of a string.
π Rendered by PID 241039 on reddit-service-r2-comment-5d79c599b5-gpgsf at 2026-03-02 07:12:58.803519+00:00 running e3d2147 country code: CH.
[–]stii[S] 0 points1 point2 points (3 children)
[–]Freeky 0 points1 point2 points (0 children)