Results 1 to 6 of 6

Thread: MySQL class - Help me to improve/suggestion

  1. #1

    Thread Starter
    Lively Member Y.P.Y's Avatar
    Join Date
    Sep 2008
    Location
    Tehran - Iran
    Posts
    88

    Post ____________________________

    ______________________________
    Last edited by Y.P.Y; Apr 28th, 2012 at 05:12 PM.

  2. #2
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: MySQL class - Help me to improve/suggestion

    A few things caught my eye:
    1. that your variable names are large, it really isnt a problem, but they could be smaller.
    2. why do you have the _Is_Blank function, when PHP has the empty() function already built in? I see that all your function does is see if it is empty, and that what that function does.
    3. also, the _Remove_Tag function. PHP already have the strip_tags() function built in, and you can customize which tags it ignores.
    4. last thing, it is not organized. IDK if is because of vB tags, but try using breaks and tabs.
    My usual boring signature: Something

  3. #3
    VBA Nutter visualAd's Avatar
    Join Date
    Apr 2002
    Location
    Ickenham, UK
    Posts
    4,906

    Re: MySQL class - Help me to improve/suggestion

    Both MySqlI and PHP Data Object (PDO) extensions expose a MySql class. You do not need to write your own and quite frankly; it is such a mess, I am not even going to try and understand how you have implemented it.
    PHP || MySql || Apache || Get Firefox || OpenOffice.org || Click || Slap ILMV || 1337 c0d || GotoMyPc For FREE! Part 1, Part 2

    | PHP Session --> Database Handler * Custom Error Handler * Installing PHP * HTML Form Handler * PHP 5 OOP * Using XML * Ajax * Xslt | VB6 Winsock - HTTP POST / GET * Winsock - HTTP File Upload

    Latest quote: crptcblade - VB6 executables can't be decompiled, only disassembled. And the disassembled code is even less useful than I am.

    Random VisualAd: Blog - Latest Post: When the Internet becomes Electricity!!


    Spread happiness and joy. Rate good posts.

  4. #4

    Thread Starter
    Lively Member Y.P.Y's Avatar
    Join Date
    Sep 2008
    Location
    Tehran - Iran
    Posts
    88

    Exclamation Re: MySQL class - Help me to improve/suggestion

    variable names changed! ;) Thanks.
    "_Is_Blank" & "_Remove_Tag" is better security.
    PHP "strip_tags" is not secure(XSS attacks)!
    Last edited by Y.P.Y; Sep 20th, 2008 at 12:38 PM.

  5. #5
    WiggleWiggle dclamp's Avatar
    Join Date
    Aug 2006
    Posts
    3,527

    Re: MySQL class - Help me to improve/suggestion

    Please DO NOT post hacking tips on vbf.
    My usual boring signature: Something

  6. #6

    Thread Starter
    Lively Member Y.P.Y's Avatar
    Join Date
    Sep 2008
    Location
    Tehran - Iran
    Posts
    88

    Exclamation Re: MySQL class - Help me to improve/suggestion

    Quote Originally Posted by dclamp
    Please DO NOT post hacking tips on vbf.
    This is not hacking tips. Or tutorial.
    Just for INTERCEPTION/BLOCKAGE.

Posting Permissions

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



Click Here to Expand Forum to Full Width