Discussion Board
Welcome Guest! You can login or register. Login or Register.
5 Pages<1234>»

Options
Go to last post Go to first unread
Zero2Cool  
#21 Posted : Thursday, September 10, 2009 5:07:34 PM(UTC)
" said: Go to Quoted Post
with in the class pages, you will put your functions to store and retrieve your data as well as the functionality to save pics and change the picks..

what do you think.

BTW do not get me started talkin about programming. i am an junkie. i just started 4 years ago. two years of school, got hired for a fullt time programming job before i even graduated. worked 14 months full time, then the next 5 months part time.

i have received no training, just been cut loose on live projects since day 1. i've coded in cold fusion, vb6, vb.net, classic asp, sql, javascript, css, html, mysql, php.

mainly doing various database driven forms and validation. no fancy graphics or code editors.

my week is over no more coding for this week, & i'm going fishing. chat next week.


I'll add more to this when I get home.

I had two years of college as well. Graduated, then a few months later, got a full time VB job. I've done a lot of various coding, but nothing I'm proud or languages I care to admit to touching, publicly. :)



" said: Go to Quoted Post
I thought we scrapped this project with the failed host move.. but the design that DH has listed looks pretty solid overall.. +1.

However maybe link the login credentials from here to the other app..

Appreciate the kindly reminder of lost money and time on the second failed host move. :)

Decided to stay with Linux and learn PHP code.
Zero2Cool  
#22 Posted : Saturday, September 12, 2009 9:09:01 AM(UTC)
Okay, I'll be putting fours into this, today. starting, 8 minutes ago.

Providing nothing breaks down in the plant. :)
Zero2Cool  
#23 Posted : Saturday, September 12, 2009 9:31:21 AM(UTC)
HOLY SHIZNIZZLEFRAPS! I had some code that I had done awhile on this. By golly, I think I might be able to do this after all!
Zero2Cool  
#24 Posted : Saturday, September 12, 2009 11:36:55 AM(UTC)
I like VB, much more gooder. This coding via text editor > my ass. :)


Anyhow. I've got the form to send the picks to the database. But now I have to figure out an intelligent way to build the database. Current method, not too bright. :)


http://forums.devnetwork...1328f62de11485ad60691e80
Zero2Cool  
#25 Posted : Saturday, September 12, 2009 10:47:02 PM(UTC)
" said: Go to Quoted Post
well, you are on the right track 4-sho.

1 database
4 tables

Log In table
Current Standings table
Weekly Winner table
Each Week's Picks table

now, you'll need your login page
this will have a
template page
a class page
a login.php page
a db class page

a current standings page

this will have a
template page
a class page
a db class page

Weekly Winner page
this will have a
template page
a class page
a db class page

Each Week's Picks page
this will have a
template page
a class page
a db class page

with in the class pages, you will put your functions to store and retrieve your data as well as the functionality to save pics and change the picks..


Oddly enough, I understand what you're saying, and if this was .NET I'd have it done already. However, I'm at a complete loss. Also, about the login page. I'd like to use the require (login.php) and take the member name from there. That would elminate having to make a new login/password for everyone. Which is one of the reasons I'm wanting to do it on the site instead of Yahoo! or something. Is that possible?

Edit, also ... a page is needed to submit the winners.
dhpackr  
#26 Posted : Tuesday, September 15, 2009 6:36:47 PM(UTC)
is ur login page working??

ru using PHP/MyAdmin to build ur database???

create your login table. you can import data from another database, an excel spread sheet or cvs file, and add, edit, delete using the PHP/MYSQL admin area.

so you should be able to just add another table via the PHP admin area to the database u already have called login. it would have fields called username, password etc.

the members name can be added to the table and then u would write a query to select the usersname & password.

have u connected to your database and displayed some data yet??
u said u got the forms to display in the database, now is that data being displayed on the page??

as far as submitting the winners. u would want to write a function to display the winners and put this code in the class file for what ever page you wish to display the winners on.
Zero2Cool  
#27 Posted : Wednesday, September 16, 2009 2:57:58 PM(UTC)
" said: Go to Quoted Post
is ur login page working??

I'm going to take the member name of the member and use that instead of having members create a new login.


" said: Go to Quoted Post
ru using PHP/MyAdmin to build ur database???

I have one table for all of the picks right now. It's not going to be the fastest method, but I just want to get something done. (Table has fldMember, fldWeek, fldGame, fldSelection and fldWinner) So far, working out nicely.

" said: Go to Quoted Post
create your login table. you can import data from another database, an excel spread sheet or cvs file, and add, edit, delete using the PHP/MYSQL admin area.

I think I might be able to get around doing the whole login.php thing.

" said: Go to Quoted Post
so you should be able to just add another table via the PHP admin area to the database u already have called login. it would have fields called username, password etc.

the members name can be added to the table and then u would write a query to select the usersname & password.

I think using the member name from the member already logged into PH might be the easiest solution instead of having everyone use another login to remember.

" said: Go to Quoted Post
have u connected to your database and displayed some data yet??

Yes sir. I've read, write, updated and displayed data on the PHP page from the MySQL database.

" said: Go to Quoted Post
u said u got the forms to display in the database, now is that data being displayed on the page??

I don't have any forms displaying IN the database. I have the page posted on the original post displaying a form. The form table layout is hardcoded.

" said: Go to Quoted Post
as far as submitting the winners. u would want to write a function to display the winners and put this code in the class file for what ever page you wish to display the winners on.

I was considering making a admin page, secured via password and entering the winners in there.

I've kind of laid off on this because I just don't have the time to dedicate to it. I made some good progress and if I had a couple days to do dedicate to it, I'd have it done. Wouldn't be anything pretty or to brag about, but would serve the purpose and work well. The problem is with not knowing what I can do, it's slowing me down. I have to try several different things before finding one that works.
dhpackr  
#28 Posted : Friday, September 18, 2009 9:51:04 PM(UTC)
if you ever need any help with forms or validation, let me know.

i do not do design work or photoshop, but if you want some one to hack out some code let me know.
Zero2Cool  
#29 Posted : Friday, September 18, 2009 10:08:23 PM(UTC)
I will need your help buddy. I'm going to get something to eat. Beat my daughter up and then I'll be back.

http://packershome.com/index.php?name=NFL_Picks &lt;-- That's where I'm at right now. I have several questions.
dhpackr  
#30 Posted : Friday, September 18, 2009 10:35:18 PM(UTC)
OK, i took a quick look. i guess you would want some validation to make sure all the picks are made.

FYI- i am a little cross eyed right now. I was fishing all day, from 6 a.m to about 6 p.m.

right now i feel like i am still bobbing up and down in a boat.

i think after the picks are made you want to have the user click submit and store their selection in your database table, and also have the click send the user to a confirmation page that displays their picks.

passing values from one form to another takes some solid PHP programming.

i got a little to much sun today, so i need to take a break. Mon a.m. i can work with you if you want.
Zero2Cool  
#31 Posted : Friday, September 18, 2009 10:45:39 PM(UTC)
Crap, I work mon-fri 7a - 5p give or take a half hour.


Little touch on the submitting picks thing. I'd like the validation to be checked when the picks are submitted. I think can I code that, but once all picks are submitted I'd like it to go to a page say "picks.php" or something that displays that week's selections for that user.
Zero2Cool  
#32 Posted : Saturday, September 19, 2009 5:40:03 AM(UTC)
Okay, it's coming close to 4am ... I have to get some sleep.

Once I figure a few things out, I'll be dangerous!

You can click HERE to see the main page with all the weeks and current standings.

I need to figure out how to, when '1' or '2' or '17' is clicked that it displays that page in its place. Not as easy as HTML with frames. Damn!!!
dhpackr  
#33 Posted : Saturday, September 19, 2009 11:49:50 AM(UTC)
i can't do anything, it errors out.

but i think ur going to have to pass some values through a function.

probably use javascript and a function to a click.
Zero2Cool  
#34 Posted : Saturday, September 19, 2009 1:19:26 PM(UTC)
" said: Go to Quoted Post
i can't do anything, it errors out.

but i think ur going to have to pass some values through a function.

probably use javascript and a function to a click.


What errors? I know when you click the '1' link it gives an error, that's the issue I'm at right now, lol.

You should be able to see the main page that displays the totals though.
Zero2Cool  
#35 Posted : Saturday, September 19, 2009 3:01:39 PM(UTC)
Figured out how to link between pages in a module, but now when I hit the Submit button for my picks, I get an error.

talk about taking baby steps ...
dhpackr  
#36 Posted : Sunday, September 20, 2009 2:02:24 AM(UTC)
" said: Go to Quoted Post
Figured out how to link between pages in a module, but now when I hit the Submit button for my picks, I get an error.

talk about taking baby steps ...


what is the error?? php can be tuff to find errors. you can use a echo sql command to find your error
Zero2Cool  
#37 Posted : Sunday, September 20, 2009 2:10:31 AM(UTC)
You can check it out. On the left side bar, under Special Features > NFL Picks > 1 and click submit. Something about forbidden characters in my link.

When I run the file outside of the website, it works. When I run it inside of the website, it throws a security issues.
dhpackr  
#38 Posted : Sunday, September 20, 2009 8:54:17 AM(UTC)
just off the top of my head, w/o looking at any thing but what u posted.

if by chance, this is a secure web page beginning in https, then every link, every image must be secures as well.

you can not have a page that begins https and have a link to http on that page, it will throw an error.

i got a 404 error. it can't find the page. is this page in a different folder?

you may have to add a ../ to your link to move up a folder just like vb.net.

also if you have the word "AND" "OR" A SINGLE QUOTE can throw an error. Delete single quotes like Zero's picks. make sure the word and or are enclosed in quotes.
Zero2Cool  
#39 Posted : Sunday, September 20, 2009 11:07:39 AM(UTC)
I was using a & in the link and that is what was killing it. I'm good now. Working on setting things up to work dynamically now.
Zero2Cool  
#40 Posted : Sunday, September 20, 2009 12:11:12 PM(UTC)
Argh ... I can't understand dj's code he posted. lol

I want it to cycle through all the selections. Ensure that all 16 have been selected. If so, then send each pick to the db one by one. If not, echo to the user as such.

But I'm not sure what the hell his code is doing! lol
Rss Feed
Users browsing this topic
Guest
5 Pages<1234>»
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Notification

Icon
Error

Fan Shout
Zero2Cool (6h) : Marschawn Lynch at 2.20
Zero2Cool (6h) : Eddie Lacy has averaged 2.15 yards per rush after contact since entering the NFL in 2013. The only back to average more in that time: Marsh
Smokey (21h) : not so , Miami voted no .
Nonstopdrivel (22h) : The twist? The only team to vote against the move was Oakland.
Smokey (27-Mar) : NFL Owner's vote 31 - 1 for the Raiders to move to Las Vegas in 2020 .
Zero2Cool (27-Mar) : Mark Murphy: Teams paid 'more than we thought was reasonable' for Packers' free agents
Zero2Cool (27-Mar) : Seahawks backup quarterback arrested for marijuana possession after car he was riding in drives into a bar
Zero2Cool (27-Mar) : I see JT, you should tell JT to post.
hardrocker950 (27-Mar) : Nice to see that Dorleant got arrested just a few miles from here...
Cheesey (26-Mar) : Sanchez with the Bears....LOLOLOL!!!!
Zero2Cool (26-Mar) : We should hope it does not happen.
hardrocker950 (25-Mar) : I doubt that happens...
Smokey (24-Mar) : GB needs to trade up in the draft to get THE Ohio State CB - Marshon Lattimore !
Zero2Cool (24-Mar) : QB Mark Sanchez joining the Bears.
Zero2Cool (24-Mar) : double it up
Zero2Cool (24-Mar) : I'm kidding, relax....
Zero2Cool (24-Mar) : and now he has been cut
uffda udfa (23-Mar) : Per Schefter: Former Skins DT Ricky Jean Francois signed a one-year, $3M deal with Packers, per source.
uffda udfa (23-Mar) : Per Schefter: FormerSkins DT Ricky Jean Francois signed a one-year, $3M deal with Packers, per source.
Zero2Cool (23-Mar) : lol by .01 not what i thought
Zero2Cool (23-Mar) : he's faster than Montgomery
uffda udfa (22-Mar) : Packers re-sign Christine Michael
Smokey (22-Mar) : Easier said than fixed .
Nonstopdrivel (22-Mar) : The web version lists who started the thread; the mobile version lists who last updated it.
Nonstopdrivel (22-Mar) : Also, there's a weird disparity between the web version and online version of this site.
Nonstopdrivel (22-Mar) : ;-)
Zero2Cool (21-Mar) : Packers wanted D. Ware in 2005. Thank you Cowboys!
Zero2Cool (21-Mar) : lol Rourke
Nonstopdrivel (21-Mar) : I HATE HATE HATE the way all threads get marked as read after viewing a few of them in one session. It's obnoxious.
Smokey (21-Mar) : Check out this site, NFLdraftscout.com , a great resource site.
Smokey (20-Mar) : Jared Cook signs with Raiders .
Smokey (20-Mar) : I did watch SB 45 on YouTube the other night, very eye opening .
Smokey (20-Mar) : Watching Spring Training Baseball, Nationals vs Yankees, very interesting .
Zero2Cool (19-Mar) : B1G making some noise in that bracket
Zero2Cool (19-Mar) : The more join, the more talk, the better. including John
Please sign in to use Fan Shout
2016 Packers Schedule
Sunday, Sep 11 @ 12:00 PM
at Jaguars
Sunday, Sep 18 @ 7:30 PM
at Vikings
Sunday, Sep 25 @ 12:00 PM
LIONS
Sunday, Oct 2 @ 12:00 AM
BYE
Sunday, Oct 9 @ 7:30 PM
GIANTS
Sunday, Oct 16 @ 3:25 PM
COWBOYS
Thursday, Oct 20 @ 7:25 PM
BEARS
Sunday, Oct 30 @ 3:25 PM
at Falcons
Sunday, Nov 6 @ 3:25 PM
COLTS
Sunday, Nov 13 @ 12:00 PM
at Titans
Sunday, Nov 20 @ 7:30 PM
at Redskins
Monday, Nov 28 @ 7:30 PM
at Eagles
Sunday, Dec 4 @ 12:00 PM
TEXANS
Sunday, Dec 11 @ 3:25 PM
SEAHAWKS
Sunday, Dec 18 @ 12:00 PM
at Bears
Saturday, Dec 24 @ 12:00 PM
VIKINGS
Sunday, Jan 1 @ 7:30 PM
at Lions
Think About It
Think About It
Recent Topics
41m / Green Bay Packers Talk / PackFanWithTwins

1h / Green Bay Packers Talk / wpr

2h / Green Bay Packers Talk / wpr

2h / Green Bay Packers Talk / wpr

11h / Green Bay Packers Talk / Zero2Cool

20h / Fantasy Sports Talk / Smokey

22h / Green Bay Packers Talk / DoddPower

27-Mar / Green Bay Packers Talk / RainX

27-Mar / Around The NFL / Zero2Cool

26-Mar / Green Bay Packers Talk / Zero2Cool

26-Mar / Green Bay Packers Talk / beast

25-Mar / Green Bay Packers Talk / buckeyepackfan

23-Mar / Green Bay Packers Talk / PackFanWithTwins

23-Mar / Green Bay Packers Talk / nerdmann

23-Mar / Announcements / Zero2Cool

Headlines