View Full Version : PHP Questions
teki
July 29th, 2005, 20:54
I have a question. if i do a tipping comp right and used htaccess for the person to login to a php page right and say they had 120 pts at the end of a round how would i make it automatically generate the score to say if they scored another 15 pts automatically change to 135. i know how to do the mysql bit i just want to find out how to make an auto generator AND I also know that if you make one layout i just enter a special code right so that works for all members but one more question, if one member tips something right and i want to make it come up on their login page how do i do that automatically? so hopefully you can answer all my questions.
thanks
R4g1ng
July 30th, 2005, 01:34
I'd use the if function I guess. So if they get it right, update the score + 15 and echo that they scored more points. Could I see the coding?
teki
July 30th, 2005, 03:36
well i havnt done it yet. what do you mean about function.
Mr_Denali
July 30th, 2005, 07:12
teki, try this phpfreaks.com, or phpfreak.com. they got a lot of good stuff.
teki
July 30th, 2005, 07:27
if you want to see the coding il attach all the files to this thread. i got some off http://www.php-mysql-tutorial.com/. R4g1ng could you check the coding thanks. its all the files on php files made on dreamweaver if you cant view it post here adn i will upload it as a .txt notepad doc.
Mr_Denali
July 30th, 2005, 07:30
Whoah, PHP not my thing, Im a novice when it comes to anything outside of html, and even html scares me at times. So, you seem like a smart person, what is it you do?
teki
July 30th, 2005, 07:52
okok well i go to school and stuff like that i am hoping to be a webdesigner when i am older. i am in the yunger grades of highskool. but i make websites as practice so that when im older i will be a lot better and that yeah.
Mr_Denali
July 30th, 2005, 09:25
Dude, then go for it, I thought you were some old schooler in the 30's. Good road to go down, stay on the path, and keep learning.
R4g1ng
July 30th, 2005, 10:13
lol...I'm in my first year of high school =P
A lot of programmers are around this age :D
I hate to sound stupid but my computer's kind of...broken right now. I can't use winzip. Could you put all the file contents in text files and upload the somewhere? Sorry.
teki
July 30th, 2005, 20:05
yeah sorry lol yeah im in my first yr of highskool thanks for the advice MrDenali. R4g1ng is probably a bit more advanced then me caus i only know baisic php and mysql. anyway here are the files.
R4g1ng
July 31st, 2005, 06:08
Uhh...okay. Your coding kinda confuses me. I'm not that advanced ^^0
Where do you store the amount of points a user has?
teki
July 31st, 2005, 23:56
well i will store it in the mysql table but havnt got to the bit wher i put it on the site
Corazu
August 1st, 2005, 00:25
I'm going to check the zip files and see what I can do, I might be able to help if I can get a look at the code.
~Alright, got no idea what you're trying to accomplish, but it looks fine for logging in..
What do you need exactly?~
Regards,
teki
August 1st, 2005, 01:45
ok have you ever heard of NRL (rugby league) well im trying to make a tipping comp for it and automatically store stuff and connect with the database. i can get it to say e.g Hello Teki on the tippingcpanel but i cnat list how many points. could you also tell me if the register page is alright?
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.