Access a database

Forum Home Forum Home > Construct 2 General > How do I....?
 Post Reply Post Reply
Author
575 Rep
Post Options Post Options   Quote FookinNora Quote  Post ReplyReply Direct Link To This Post Topic: Access a database
    Posted: 21 Apr 2012 at 3:59pm
Hi, i've being playing around with AJAX and reading strings from a webpage. I have managed to do that and now i'm trying to do the same thing but in a better way. I was wondering if there are any tutorials centred around database accessing and editing using construct. I basically know nothing i'm guessing it has something to do with SQL but thats as far as i got. Can this be done?

The basic goal
Read from a database a set of values depending on an input to the server i.e. an ID number

And a side goal is to load data into a database depending on an input to the server i.e. ID and Name

I've been trying on my own for a bit now, i tried making a php page that would access the database depending on input but then when i came to the actual database section got lost. I was wondering if there was a way to access the database directly

Thanks in advance



Edited by FookinNora - 21 Apr 2012 at 4:02pm
Back to Top

Scirra Developer
78,301 Rep
Post Options Post Options   Quote Ashley Quote  Post ReplyReply Direct Link To This Post Posted: 21 Apr 2012 at 5:57pm
Databases, SQL and PHP are a bit out of the scope of this forum. I'd recommend browsing the web where there are lots of other better sites for help (e.g. StackOverflow), many existing tutorials, etc.
Back to Top
575 Rep
Post Options Post Options   Quote FookinNora Quote  Post ReplyReply Direct Link To This Post Posted: 22 Apr 2012 at 3:59am
Yeah already hitting the php side of things i was just hoping that construct had an idiot proof way for me to do it with out learning php and SQL but i suppose you can't be fed everything on a plate thanks
Back to Top
2,005 Rep
Post Options Post Options   Quote DiGiCORE Quote  Post ReplyReply Direct Link To This Post Posted: 22 Apr 2012 at 6:55am
If you do wan't to learn a bit of those subjects, http://thenewboston.org/index.php has video tutorials and http://www.w3schools.com/ makes a great reference, but also has tutorials.
Back to Top
1,890 Rep
Post Options Post Options   Quote Bob Thulfram Quote  Post ReplyReply Direct Link To This Post Posted: 22 Apr 2012 at 9:52am
Originally posted by Ashley Ashley wrote:

Databases, SQL and PHP are a bit out of the scope of this forum. I'd recommend browsing the web where there are lots of other better sites for help (e.g. StackOverflow), many existing tutorials, etc.


Why not add a little Web Storage? Every browser seems to support it. Maybe not a full database, but could be useful for RPG stats.

Also consider IndexedDB; it seems to be catching on fast.

HTML5 will solve all your problems!

Edited by Bob Thulfram - 22 Apr 2012 at 9:56am
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down