Welcome to your Green Bay Packers Online Community!

Since 2006, PackersHome has been providing a unique experience for fans.
Your participation is greatly anticipated!
Login or Register.
7 Pages<12345>»
Options
View
Go to last post Go to first unread
Offline Zero2Cool  
#31 Posted : Friday, September 18, 2009 10:45:39 PM(UTC)
Zero2Cool

Rank: Legend

Yahoo! Fantasy Football - Gold: 2009FleaFlicker Fantasy Football - Silver: 2010Yahoo! NCAA March Madness - Silver: 2011ESPN NCAA March Madness - Bronze: 2010Yahoo! NCAA March Madness - Bronze: 2013

United States
Posts: 25,674
Joined: 10/13/2006(UTC)
Location: Green Bay, WI

Applause Given: 1,846
Applause Received: 2,004

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.

UserPostedImage
Click here and find the LATEST Packers News!
Offline Zero2Cool  
#32 Posted : Saturday, September 19, 2009 5:40:03 AM(UTC)
Zero2Cool

Rank: Legend

Yahoo! Fantasy Football - Gold: 2009FleaFlicker Fantasy Football - Silver: 2010Yahoo! NCAA March Madness - Silver: 2011ESPN NCAA March Madness - Bronze: 2010Yahoo! NCAA March Madness - Bronze: 2013

United States
Posts: 25,674
Joined: 10/13/2006(UTC)
Location: Green Bay, WI

Applause Given: 1,846
Applause Received: 2,004

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!!!

UserPostedImage
Click here and find the LATEST Packers News!
Offline dhpackr  
#33 Posted : Saturday, September 19, 2009 11:49:50 AM(UTC)
dhpackr

Rank: 4th Round Draft Pick

Posts: 963
Joined: 12/12/2007(UTC)

Applause Given: 36
Applause Received: 36

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.
So if you meet me Have some courtesy, Have some sympathy, and some taste
Use all your well-learned politesse, Or I'll lay your soul to waste
Offline Zero2Cool  
#34 Posted : Saturday, September 19, 2009 1:19:26 PM(UTC)
Zero2Cool

Rank: Legend

Yahoo! Fantasy Football - Gold: 2009FleaFlicker Fantasy Football - Silver: 2010Yahoo! NCAA March Madness - Silver: 2011ESPN NCAA March Madness - Bronze: 2010Yahoo! NCAA March Madness - Bronze: 2013

United States
Posts: 25,674
Joined: 10/13/2006(UTC)
Location: Green Bay, WI

Applause Given: 1,846
Applause Received: 2,004

Originally Posted by: " 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.

UserPostedImage
Click here and find the LATEST Packers News!
Offline Zero2Cool  
#35 Posted : Saturday, September 19, 2009 3:01:39 PM(UTC)
Zero2Cool

Rank: Legend

Yahoo! Fantasy Football - Gold: 2009FleaFlicker Fantasy Football - Silver: 2010Yahoo! NCAA March Madness - Silver: 2011ESPN NCAA March Madness - Bronze: 2010Yahoo! NCAA March Madness - Bronze: 2013

United States
Posts: 25,674
Joined: 10/13/2006(UTC)
Location: Green Bay, WI

Applause Given: 1,846
Applause Received: 2,004

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 ...

UserPostedImage
Click here and find the LATEST Packers News!
Offline dhpackr  
#36 Posted : Sunday, September 20, 2009 2:02:24 AM(UTC)
dhpackr

Rank: 4th Round Draft Pick

Posts: 963
Joined: 12/12/2007(UTC)

Applause Given: 36
Applause Received: 36

Originally Posted by: " 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
So if you meet me Have some courtesy, Have some sympathy, and some taste
Use all your well-learned politesse, Or I'll lay your soul to waste
Offline Zero2Cool  
#37 Posted : Sunday, September 20, 2009 2:10:31 AM(UTC)
Zero2Cool

Rank: Legend

Yahoo! Fantasy Football - Gold: 2009FleaFlicker Fantasy Football - Silver: 2010Yahoo! NCAA March Madness - Silver: 2011ESPN NCAA March Madness - Bronze: 2010Yahoo! NCAA March Madness - Bronze: 2013

United States
Posts: 25,674
Joined: 10/13/2006(UTC)
Location: Green Bay, WI

Applause Given: 1,846
Applause Received: 2,004

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.

UserPostedImage
Click here and find the LATEST Packers News!
Offline dhpackr  
#38 Posted : Sunday, September 20, 2009 8:54:17 AM(UTC)
dhpackr

Rank: 4th Round Draft Pick

Posts: 963
Joined: 12/12/2007(UTC)

Applause Given: 36
Applause Received: 36

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.
So if you meet me Have some courtesy, Have some sympathy, and some taste
Use all your well-learned politesse, Or I'll lay your soul to waste
Offline Zero2Cool  
#39 Posted : Sunday, September 20, 2009 11:07:39 AM(UTC)
Zero2Cool

Rank: Legend

Yahoo! Fantasy Football - Gold: 2009FleaFlicker Fantasy Football - Silver: 2010Yahoo! NCAA March Madness - Silver: 2011ESPN NCAA March Madness - Bronze: 2010Yahoo! NCAA March Madness - Bronze: 2013

United States
Posts: 25,674
Joined: 10/13/2006(UTC)
Location: Green Bay, WI

Applause Given: 1,846
Applause Received: 2,004

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.

UserPostedImage
Click here and find the LATEST Packers News!
Offline Zero2Cool  
#40 Posted : Sunday, September 20, 2009 12:11:12 PM(UTC)
Zero2Cool

Rank: Legend

Yahoo! Fantasy Football - Gold: 2009FleaFlicker Fantasy Football - Silver: 2010Yahoo! NCAA March Madness - Silver: 2011ESPN NCAA March Madness - Bronze: 2010Yahoo! NCAA March Madness - Bronze: 2013

United States
Posts: 25,674
Joined: 10/13/2006(UTC)
Location: Green Bay, WI

Applause Given: 1,846
Applause Received: 2,004

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

UserPostedImage
Click here and find the LATEST Packers News!
Offline dhpackr  
#41 Posted : Sunday, September 20, 2009 1:53:01 PM(UTC)
dhpackr

Rank: 4th Round Draft Pick

Posts: 963
Joined: 12/12/2007(UTC)

Applause Given: 36
Applause Received: 36

first, you need to write a validation function to ensure each radio button has been selected.

you have given each radio button its own variable in the database?? right.

its game time, and i am drinkin and eatin tacos.

after the game i may do some fishin.

Monday, when i get some time, i'll post some code for radio buttons, validation, and mysql.

unless you get it before hand.

go packers
So if you meet me Have some courtesy, Have some sympathy, and some taste
Use all your well-learned politesse, Or I'll lay your soul to waste
Offline Zero2Cool  
#42 Posted : Sunday, September 20, 2009 1:56:38 PM(UTC)
Zero2Cool

Rank: Legend

Yahoo! Fantasy Football - Gold: 2009FleaFlicker Fantasy Football - Silver: 2010Yahoo! NCAA March Madness - Silver: 2011ESPN NCAA March Madness - Bronze: 2010Yahoo! NCAA March Madness - Bronze: 2013

United States
Posts: 25,674
Joined: 10/13/2006(UTC)
Location: Green Bay, WI

Applause Given: 1,846
Applause Received: 2,004

I won't have it before hand, lol. :)

UserPostedImage
Click here and find the LATEST Packers News!
Offline zombieslayer  
#43 Posted : Sunday, September 20, 2009 3:42:26 PM(UTC)
zombieslayer

Rank: Most Valuable Player

Posts: 9,919
Joined: 8/7/2008(UTC)
Location: San Francisco

Applause Given: 778
Applause Received: 495

Originally Posted by: " Go to Quoted Post
Okay, effective, umm, now. No more host switching until next off season. I'm going to focus on learning PHP in a similar fashion that I know ASP.NET.

Click HERE to see the page.


Building the form, easy.
Coding the connection to the database, easy.
Grabbing the values from the radio buttons and storing them into variables to transfer to a database, kicking my ass.

I think I'm attacking this wrong because I'm using HTML code, but shouldn't I be able to use straight PHP code throughout?


Edit, here's how I'm starting out ...
http://w3schools.com/php/php_syntax.asp

lol


Zero - If you were here in SF, you could get pretty good jobs knowing PHP pretty well. ASP not so much.
My man Donald Driver
UserPostedImage

(thanks to Pack93z for the pic)

2010 will be seen as the beginning of the new Packers dynasty. Ted Thompson Mike McCarthy Aaron Rodgers
Offline dhpackr  
#44 Posted : Sunday, September 20, 2009 3:47:16 PM(UTC)
dhpackr

Rank: 4th Round Draft Pick

Posts: 963
Joined: 12/12/2007(UTC)

Applause Given: 36
Applause Received: 36

Originally Posted by: " Go to Quoted Post
Originally Posted by: " Go to Quoted Post
Okay, effective, umm, now. No more host switching until next off season. I'm going to focus on learning PHP in a similar fashion that I know ASP.NET.

Click HERE to see the page.


Building the form, easy.
Coding the connection to the database, easy.
Grabbing the values from the radio buttons and storing them into variables to transfer to a database, kicking my ass.

I think I'm attacking this wrong because I'm using HTML code, but shouldn't I be able to use straight PHP code throughout?


Edit, here's how I'm starting out ...
http://w3schools.com/php/php_syntax.asp

lol


Zero - If you were here in SF, you could get pretty good jobs knowing PHP pretty well. ASP not so much.


PHP ASP both scripting languages. I could work on apllications in San Fran from WI
So if you meet me Have some courtesy, Have some sympathy, and some taste
Use all your well-learned politesse, Or I'll lay your soul to waste
Offline Zero2Cool  
#45 Posted : Sunday, September 20, 2009 3:52:11 PM(UTC)
Zero2Cool

Rank: Legend

Yahoo! Fantasy Football - Gold: 2009FleaFlicker Fantasy Football - Silver: 2010Yahoo! NCAA March Madness - Silver: 2011ESPN NCAA March Madness - Bronze: 2010Yahoo! NCAA March Madness - Bronze: 2013

United States
Posts: 25,674
Joined: 10/13/2006(UTC)
Location: Green Bay, WI

Applause Given: 1,846
Applause Received: 2,004

When submit clicked, check all games to ensure a selection has been made, if all selected, send each selection to database, if one or more was missing, indicate that to the user.

once all are sent, I'd like it to say

Zero2Coo's Winners for Week 01
Packers
Lions
etc


That's what I'm going for.

UserPostedImage
Click here and find the LATEST Packers News!
Rss Feed 
Users browsing this topic
Guest (2)
7 Pages<12345>»
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

Recent Topics
8h / Green Bay Packers Talk / DakotaT

9h / Green Bay Packers Talk / uffda udfa

12h / Green Bay Packers Talk / DarkaneRules

12h / Green Bay Packers Talk / DarkaneRules

15h / Green Bay Packers Talk / DakotaT

18h / Green Bay Packers Talk / Mucky Tundra

19h / Green Bay Packers Talk / nerdmann

21h / Green Bay Packers Talk / DarkaneRules

21h / Green Bay Packers Talk / Tezzy

31-Jul / Green Bay Packers Talk / nerdmann

31-Jul / Green Bay Packers Talk / mi_keys

31-Jul / Fantasy Sports Talk / pitt yinzer

31-Jul / Green Bay Packers Talk / uffda udfa

30-Jul / Green Bay Packers Talk / nerdmann

30-Jul / Green Bay Packers Talk / sschind


Tweeter

Copyright © 2006-2014 PackersHome.com™. All Rights Reserved.