Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Page 3 of 3 FirstFirst 123
Results 31 to 33 of 33
  1. #31
    New Coder
    Join Date
    Apr 2013
    Posts
    43
    Thanks
    9
    Thanked 0 Times in 0 Posts
    hi, the data type of "size" is "decimal(5,1)"

  2. #32
    New Coder
    Join Date
    Apr 2013
    Posts
    43
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Well thanks to this excellent forum and the serious awesome coding that are willing to help, Ive now got my site working nicely with the SQL table.

    Thank you for all those that gave me advice.

    I now need to learn the something that I didnt pay attention to at the start, merely cause I was trying to learn some basics first on how to get it all work!!
    Thats Injection attacks

    What should I be doing to protect against these?

  3. #33
    God Emperor Fou-Lu's Avatar
    Join Date
    Sep 2002
    Location
    Saskatoon, Saskatchewan
    Posts
    16,994
    Thanks
    4
    Thanked 2,662 Times in 2,631 Posts
    Use the MySQLi or PDO libraries since both of these allow the use of prepared statements. Prepared statements already separate the data from the structure, so you cannot inject a statement with damaging data.
    PHP Code:
    header('HTTP/1.1 420 Enhance Your Calm'); 
    Been gone for a few months, and haven't programmed in that long of a time. Meh, I'll wing it ;)


 
Page 3 of 3 FirstFirst 123

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •