p2p.wrox.com Forums

Need to download code?

View our list of code downloads.

  Return to Index  

beginning_php thread: Help from the "usual crew"? Can you look at a site for me?

Message #1 by "Dan Ostrowski" <dan@t...> on Mon, 8 Apr 2002 23:36:25
I run a site at isportzone.com (my dad owns the place so i do the work pro-
bono... and to learn).

Can you take a look at my poll script and see if you see any problems?  
Also, it's something you can vote on... is the site loading at WAY to slow 
a speed?

It's my first large scale site, so maybe you could poke around a bit and 
tell me where it's amateurish?

Nik, your input, even a paragraph, would be wonderful.

The site is at:  www.isportzone.com

When you <click to enter> at the intro image, the main page should have 
the poll on it..

thanks in advance for ANY input!

Message #2 by "Nikolai Devereaux" <yomama@u...> on Mon, 8 Apr 2002 16:00:29 -0700
I just tried to register, and I got a php warning:

Warning: Variable passed to each() is not an array or object in
/home/www/isportzone/register.php on line 158

I've seen this happen when the calls to list() and each() are in the wrong
order; i.e. while(each(...) = list(...)) instead of while(list(..) 

I'll poke around a bit more and get back to you.

take care,


Message #3 by "Nikolai Devereaux" <yomama@u...> on Mon, 8 Apr 2002 16:13:40 -0700
A guess:

I think the warning might be because I didn't sign up for any newsletters,
so no checkboxes were checked.  If you were iterating through all the user
selections, with a while(list = each) loop, that'd cause the problem.

Message #4 by "Dan Ostrowski" <dan@t...> on Tue, 9 Apr 2002 00:42:21

i will fix that.  bleh.



  Return to Index