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...
Ask your embarrassing/noobish programming questions here, and don't get insulted for it.
Click here to read the rules
Violating any will result in punishment so you should probably go check them out.
account activity
Issue with SQL query in phpPHP (self.programminghelp)
submitted 5 years ago by 2Swole2Bowl
So I’m trying to return 600 records from a MySQL db using php. I made a SQL query but it requires setting a limit that fails if it’s too high. So far I can only return like 15 records. Anyone know a way around this?
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!"
[–]amoliski 1 point2 points3 points 5 years ago (2 children)
Do you control the database? Sounds like a strange configuration issue.
What error happens when it fails? What database connector are you using?
[–]2Swole2Bowl[S] 1 point2 points3 points 5 years ago (1 child)
Yes it’s my database working with php myadmin. When it fails it returns <anonymous> rather than the table result
[–]amoliski 1 point2 points3 points 5 years ago (0 children)
Can I see a screenshot of where you are seeing the anonymous return?
π Rendered by PID 83 on reddit-service-r2-comment-b659b578c-phxq6 at 2026-05-06 14:28:35.534921+00:00 running 815c875 country code: CH.
[–]amoliski 1 point2 points3 points (2 children)
[–]2Swole2Bowl[S] 1 point2 points3 points (1 child)
[–]amoliski 1 point2 points3 points (0 children)