Dev Shed Lounge
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Verisign Code Signing
Go Back   Dev Shed ForumsOtherDev Shed Lounge

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stay one step ahead of the competition. Evaluate and give feedback on some of the hottest web development tools on the market today. Make your opinion heard! Click Here
  #1  
Old December 13th, 2001, 08:05 AM
-=-steve-=- -=-steve-=- is offline
Devshed Gringo
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: Toronto, Ontario
Posts: 411 -=-steve-=- User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 52 m 45 sec
Reputation Power: 8
Talking crap how stupid of me (checkboxes) not a ? [rant]

Hi everyone! This is pretty funny or sad LOL

For checkboxes in forms I used variable variables to process the info! Like: checkbox name = steve, value = yes

Then I compare the checkbox name to the names in my database. HAHAHA that's pretty dumb of me.

Code:
while ($row = mysql_fetch_array($result)) {
          $name = $row['name'];
if (isset($$name) && $$name = 'yes') {
       array_push($array, '$name');
//etc... 


All I need to do is name my checkboxes so it will form an array and very much easy to process later on LOL Oh well live and learn I guess! I notice many dumb things I did but at least I notice them and change them. I wonder if other people did stupid errors like this when they started out?

Just because it works doesn't mean it's okay to live with!

On a side note do you think a PHP bloopers web site would be cool? I mean chunks of poorly written code along side with the proper way of doing things with a small explaination.. Could help people like me, when reading such a site and realize that some of my techniques are wrong. Only to change them into proper style and function? You could search the site by functions etc... I'd build such a thing but I could only supply the wrong techniques LOL...
__________________
Going PHP5 OOP nerd and maybe get some Zend training too...

Reply With Quote
  #2  
Old December 13th, 2001, 08:51 AM
jdk's Avatar
jdk jdk is offline
phpkid ~~~~~~ :o)
Dev Shed Frequenter (2500 - 2999 posts)
 
Join Date: Nov 2000
Location: NJ, USA
Posts: 2,535 jdk User rank is Lance Corporal (50 - 100 Reputation Level)jdk User rank is Lance Corporal (50 - 100 Reputation Level)jdk User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 11 m 11 sec
Reputation Power: 10
Send a message via Yahoo to jdk
I can help you in one matter.

I can provide you the correct code, cause it would be now hard for me to write blooper !!! not boasting about myself..but still....


JD
__________________
_____________________________
d.k.jariwala (JD)
~ simple thought, simple act ~
I blog @ http://jdk.phpkid.org

Reply With Quote
  #3  
Old December 13th, 2001, 09:55 AM
-=-steve-=- -=-steve-=- is offline
Devshed Gringo
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2000
Location: Toronto, Ontario
Posts: 411 -=-steve-=- User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 2 h 52 m 45 sec
Reputation Power: 8
Yeah, it may be a fun little site but I will only have time until March, until then I'm booked

In the mean time I'm reading alot of examples from the good coders such as you, jdk and others from these boards and taking apart cool scripts like phpmyadmin, etc...

Reply With Quote
Reply

Viewing: Dev Shed ForumsOtherDev Shed Lounge > crap how stupid of me (checkboxes) not a ? [rant]


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

 Free IT White Papers!
 
Accelerating Trading Partner Performance
One in five. That's how many partner transactions have at least one error. That is an amazing statistic, particularly given the extraordinary leaps in innovation across the global supply chain during the past two decades. Download this white paper to learn more.

 
Competing on Analytics
This Tech Analysis is designed to help identify characteristics shared by analytics competitors, and includes information about 32 organizations that have made a commitment to quantitative, fact-based analysis.

 
Cost Effective Scaling with Virtualization and Coyote Point Systems
An overview of the industry trend toward virtualization, how server consolidation has increased the importance of application uptime and the steps being taken to integrate load balancing technology with virtualized servers.

 
Five Checkpoints to Implementing IP Telephony
Implementation planning for IP PBX software and IP telephony has become vital as businesses replace discontinued legacy PBX phone systems. This informative whitepaper outlines five "checkpoints" for any implementation plan that will help make IP communications a successful proposition.

 
Hosted Email Security: Staying Ahead of New Threats
In the last two years, email has become a fierce battleground between the nefarious forces of spam and malware, and the heroes of messaging protection. The spam volumes increased alarmingly every month, bringing clever new forms of phishing and virus propagation attacks.

 

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 3 hosted by Hostway