Hack Forums
[PHP] Call Database search by URL for specific values - Printable Version

+- Hack Forums (https://hackforums.net)
+-- Forum: Tech (https://hackforums.net/forumdisplay.php?fid=444)
+--- Forum: Coding (https://hackforums.net/forumdisplay.php?fid=151)
+---- Forum: Web Development (https://hackforums.net/forumdisplay.php?fid=183)
+---- Thread: [PHP] Call Database search by URL for specific values (/showthread.php?tid=5917259)



Call Database search by URL for specific values - PerformanceDirectUSA - Dec 9, 2018

puu.sh/CfaF5.png

Would would I do this? I have a MySQL database; would i use PHP to make this call securely? Its in one db,one table, a few columns but one is name and one is credits.

TIA for any help


RE: Call Database search by URL for specific values - realsunjester - Dec 9, 2018

(Dec 9, 2018 04:50 PM)PerformanceDirectUSA Wrote:  puu.sh/CfaF5.png

Would would I do this? I have a MySQL database; would i use PHP to make this call securely? Its in one db,one table, a few columns but one is name and one is credits.

TIA for any help

I am confused as to what you are asking


RE: Call Database search by URL for specific values - Nachfolger - Dec 9, 2018

(Dec 9, 2018 04:52 PM)realsunjester Wrote:  I am confused as to what you are asking
I'm in the same boat as this guy.

OP, use coherent English to construct your sentences, please.


RE: Call Database search by URL for specific values - PerformanceDirectUSA - Dec 9, 2018

(Dec 9, 2018 04:52 PM)realsunjester Wrote:  I am confused as to what you are asking

(Dec 9, 2018 04:56 PM)Nachfolger Wrote:  I'm in the same boat as this guy.

OP, use coherent English to construct your sentences, please.

Wowzers. That's what happens when I type a message just after waking up I guess. Let me rephrase.

In the URL I posted, this webservice I use lets me query a DB and POST to it for updates. I'm trying to figure out how to do that with a REST API.

github(dot)com/mevdschee/php-crud-api

Utilizing this API....
url/TEST/api.php/records/store_players/418 -- works (this is "id" in my table, the very first column)
url/TEST/api.php/records/store_players/1:422354506 -- does not work... this is the data from an entry in the second column.

puu.sh/CfdCS.png

I just need to have the URL like the second way and only spit out a "credits" number.