lewisstevens1 Posted March 19, 2009 Share Posted March 19, 2009 hi i have a problem, i am not great at php and mysql, i know the theory of it, so i have a 2 php documents attached in a .zip file, its just like pseudocode of what i want to say, i will give you a copy of it here but it may be easier to read if you had the files. I dont know what i can do with it, i know how to create a table read data from mysql database, but im not too sure about this. each pseudocode has a different way id like to do it, though if i could just get one working that would be great, one way may be easier for others, im just trying to give an idea of what i want to create. i will post the code here as well, thankyou if you can help me. the "------" is the break for psudocode, the "____" is for break of files or sections. the pasted code here has no comments unlike the attached files. ___________ upon affiliatepayment {+"usertokens" to "usertokenstotal"} end __________ if "usertokenstotal" >= "usertokenspayment" then {-"usertokenspayment" from "usertokenstotal"} then {increment "userdplevel" by 1} if "userdplevel" > 3 then echo "Sorry you allready have the highest level dp available" else echo "Sorry you do not have enough money to make this purchase" end ___________ if "userdplevel" = 1 then load imgsrc ("www.mysite.com/images/dplevel1.png") else continue if "userdplevel" = 2 then load imgsrc ("www.mysite.com/images/dplevel2.png") else continue if "userdplevel" = 3 then load imgsrc ("www.mysite.com/images/dplevel3.png") else end __________ /*More Comments*/ Well, i want the data to be stored in a database, i want: "usertokenstotal" "userdplevel" though the images will be stored on the server. the usertokens payment i think i will want a set amount, so lets say we'd replace the usertokens payment with 50, either that or i could have a text file to add how much id like to have it updated by. i dont really mind, i would even be ok if another feild was created to store how much it was ment to be updated by. id like to store the dp in the div i have created. Many thanks Lewis Stevens Greatly Appreciated ----------------------------------------------- Thats the first doc. but there is another attached. [attachment deleted by admin] Link to comment https://forums.phpfreaks.com/topic/150237-please-help-im-quite-a-novice-and-this-may-be-few-languages-s/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.