robocz033 0 Report post Posted May 13, 2007 Alright, i need a script that will change a number every time a button is clicked. the line it must change is:http://forums.xisto.com/no_longer_exists/to:http://forums.xisto.com/no_longer_exists/and keep moving the "start=(#)" up. the forum is dedicated to this, so i dont have to worry about the post number or anything. it will be a strait up deal.Another feature, if possible, is to link a bunch of generators together. they all go off of the same post counter and then with that, they determine the line to put in. For example:The website request form has this post number: http://forums.xisto.com/no_longer_exists/then the website modification for has this post number: http://forums.xisto.com/no_longer_exists/so the script would link that line of code with all the other files. if someone can do this, i will send them the files. then it would be also appreciated if it could be explained to me. Share this post Link to post Share on other sites
jlhaslip 4 Report post Posted May 13, 2007 I don't have time to do this coding, but one method would be to create a text file with a single line of data, being the start number last used. Each time the button is clicked, read the file for the last value used, add one and write that to the file as an overwrite of the data, then store the value in the code to be used for the query string.Sorry that i don't have the time to do it for you. Maybe read up on fread, fwrite functions and using the $_GET method to retrieve the query string over at the php.com site. Share this post Link to post Share on other sites
Saint_Michael 3 Report post Posted May 13, 2007 Like I mentioned earlier about this, the problem I see with doing a hack like that is it will mess up the post that use a unique number and then the increases by one every time a new post is made. When someone posts on the forum that has the same number as the link the forum generates, it could cause a possible error in the database. Unless you somehow create a separate database if the info programmed in and then generated through a php then it might work. Hopefully that gives an idea on where to start programming that. Share this post Link to post Share on other sites
robocz033 0 Report post Posted May 13, 2007 im going to make a seperate forum for it so that does not happen. even if it does, all that happens is it says the post was already submitted. Share this post Link to post Share on other sites