Jump to content

please help, im quite a novice and this may be few languages :S


lewisstevens1

Recommended Posts

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.