CTphpnwb's Profile User Rating: *****

Reputation: 2834 Guru
Group:
Mentors
Active Posts:
9,748 (4.69 per day)
Joined:
08-August 08
Profile Views:
57,094
Last Active:
User is offline Today, 11:10 AM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Mac
Favorite Browser:
Safari
Favorite Processor:
Who Cares
Favorite Gaming Platform:
Who Cares
Your Car:
Toyota
Dream Kudos:
350
Expert In:
PHP

Latest Visitors

Icon   CTphpnwb has not set their status

Posts I've Made

  1. In Topic: Normal Calculations

    Posted 17 Apr 2014

    I don't understand the use of magic numbers:
    assignnormal(0,1,2);
    assignnormal(0,2,3);
    assignnormal(0,3,4);
    assignnormal(0,4,1);
    
    

    If you're calculating normals of points, shouldn't you be passing them?
  2. In Topic: Normal Calculations

    Posted 17 Apr 2014

    No, it's not obvious. We aren't running your code in your environment.

    Does it compile? If so, what are your inputs/outputs? Explain in detail what problem you are having!
  3. In Topic: Control flow from HTML to PHP

    Posted 16 Apr 2014

    View Postadityamithal, on 16 April 2014 - 12:24 PM, said:

    Yes, This is Dreamweaver generated code but what have I done wrong ?

    For starters, you've used Dreamweaver. You've also used $x = $_POST['x']; which is not only a waste of processor cycles but also helps make your code less secure. Then you made things worse by not recognizing that HTML and PHP are not processed on the same computer. PHP is server side, and HTML is client side. You then made things far worse by using deprecated, insecure mysql functions instead of prepared statements in PDO or MySQLi.
  4. In Topic: php and sql connection

    Posted 15 Apr 2014

    Worse than not validating, you are not using prepared statements (100% secure from SQL injection attack) or scrubbing the data (far less than secure) so you're essentially begging to have your site hacked.

    Oh, and $x = $_POST['x']; is always a bad idea.
  5. In Topic: PHP not communicating with MYSQL Database

    Posted 14 Apr 2014

    Is there a good reason that you're using deprecated mysql functions?

My Information

Member Title:
D.I.C Lover
Age:
Age Unknown
Birthday:
Birthday Unknown
Gender:
Interests:
Looking for php programming work.
Years Programming:
34
Programming Languages:
Experience is important, yet at the same time it's over-rated.

Contact Information

E-mail:
Click here to e-mail me
Website URL:
Website URL  http://

Comments

Page 1 of 1
  1. Photo

    CTphpnwb Icon

    31 Mar 2010 - 18:50
    Please post programming questions in the appropriate forums.
Page 1 of 1