only one Posted April 25, 2007 Share Posted April 25, 2007 hi, ive created alot of javascript functions for my mmorpg.. (eg. fishing, fighting) where players select options rather then just get the results of what happend (more intresting this way) after the functions are finnished i insert the variables into a txt file, one problem im having is i want to insert it into my mysql database. im planing to include a file on every page that will gather the info and store it into the database. how do i gather the information??? Quote Link to comment Share on other sites More sharing options...
kalivos Posted April 25, 2007 Share Posted April 25, 2007 file_get_contents() returns the file contents as a string file() returns the file as an array. Hope it helps. -Kalivos Quote Link to comment Share on other sites More sharing options...
only one Posted April 25, 2007 Author Share Posted April 25, 2007 hey thanks, got it working Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.