Graal Forums

Graal Forums (https://forums.graalonline.com/forums/index.php)
-   Graal V4 Main Forum (https://forums.graalonline.com/forums/forumdisplay.php?f=143)
-   -   requestmysql? (https://forums.graalonline.com/forums/showthread.php?t=63790)

Rick 01-29-2006 07:12 AM

requestmysql?
 
What's this for? :)

talkingnoodle 01-31-2006 03:15 AM

mayb it connects to an sql server for information? o_O

Riot 01-31-2006 03:22 AM

Quote:

Originally Posted by talkingnoodle
mayb it connects to an sql server for information? o_O

That would be what the name infers.

I tried using this a while back when was fiddling with requesturl and couldn't find any way to get it to work, or even what it returns if it works. Some insight would be nice, SQL access would be a lot easier than using requesturl all the time.

Riot 01-31-2006 04:03 AM

Quote:

Originally Posted by VulcanP2P
If I had to guess I'd probably think it was something like requestMySQL(site:port,username,password,query); or something like that. I've never tried to use it or even know if that's its actual function though. :o

Both the server and client documents have it listed as:
requestmysql(str, str, str, str, str) - returns object

VulcanP2P 01-31-2006 04:06 AM

Quote:

Originally Posted by Riot
Both the server and client documents have it listed as:
requestmysql(str, str, str, str, str) - returns object

Yeah just saw that and deleted my post. :) Guess I was too slow. >_<

It'd be interesting to find out how exactly it is used.

Admins 01-31-2006 04:33 AM

It's not working yet, the idea was to allow communication to the database of playerworldname.graal.net

Warcaptain 02-28-2006 09:47 PM

That explains why it hasnt been working for me..

I thought it was
requestmysql(server,account,password,database,quer y);

which would make sense.. and if thats not how its going to work you should add a command like that so it can communicate with any mysql server.

projectigi 02-28-2006 10:10 PM

hmmm i think we could write our own requestmysql() function that uses requesturl() and a php file or? :o

Skyld 02-28-2006 10:28 PM

Quote:

Originally Posted by projectigi
hmmm i think we could write our own requestmysql() function that uses requesturl() and a php file or? :o

Well, you could, but I doubt it would be very secure, practical or easy to implement.

ZeroTrack 02-28-2006 10:47 PM

Quote:

Originally Posted by Warcaptain
That explains why it hasnt been working for me..

I thought it was
requestmysql(server,account,password,database,quer y);

which would make sense.. and if thats not how its going to work you should add a command like that so it can communicate with any mysql server.


this would be SUCH a sweeettttt swweeettttt way to use that =p, oh the possibilitys

Warcaptain 02-28-2006 11:06 PM

Quote:

Originally Posted by Skyld
Well, you could, but I doubt it would be very secure, practical or easy to implement.


hmmmn

can use it and have and do something like..

domain.com/sqlquery.php?acc=SQLACC&pass=SQLPASS&db=DBNAME&que ry=QUERY

would be as secure as any other command to access mysql through graal.

would still need to know accname and password

projectigi 02-28-2006 11:11 PM

yeah and you could make a class for that function
and give noone read access to the class haha xP

Skyld 02-28-2006 11:16 PM

Quote:

Originally Posted by Warcaptain
hmmmn

can use it and have and do something like..

domain.com/sqlquery.php?acc=SQLACC&pass=SQLPASS&db=DBNAME&que ry=QUERY

would be as secure as any other command to access mysql through graal.

would still need to know accname and password

It's this whole thing about sending your SQL details through a URL that probably concerns me. I realise that the chance of someone picking up on them is slim, but still, web server logs and such.

Riot 02-28-2006 11:42 PM

Quote:

Originally Posted by Warcaptain
hmmmn

can use it and have and do something like..

domain.com/sqlquery.php?acc=SQLACC&pass=SQLPASS&db=DBNAME&que ry=QUERY

would be as secure as any other command to access mysql through graal.

would still need to know accname and password

MySQL commands would be much more secure, if done on the server end.

projectigi 03-01-2006 01:38 AM

well you could use encryption haha


All times are GMT +2. The time now is 03:37 AM.

Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Copyright (C) 1998-2019 Toonslab All Rights Reserved.