|
-
Sep 17th, 2008, 11:27 AM
#1
Thread Starter
Lively Member
____________________________
______________________________
Last edited by Y.P.Y; Apr 28th, 2012 at 05:12 PM.
-
Sep 18th, 2008, 08:51 PM
#2
Re: MySQL class - Help me to improve/suggestion
A few things caught my eye:
- that your variable names are large, it really isnt a problem, but they could be smaller.
- 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.
- also, the _Remove_Tag function. PHP already have the strip_tags() function built in, and you can customize which tags it ignores.
- last thing, it is not organized. IDK if is because of vB tags, but try using breaks and tabs.
My usual boring signature: Something
-
Sep 19th, 2008, 06:23 AM
#3
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.
-
Sep 19th, 2008, 02:04 PM
#4
Thread Starter
Lively Member
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.
-
Sep 19th, 2008, 05:29 PM
#5
Re: MySQL class - Help me to improve/suggestion
Please DO NOT post hacking tips on vbf.
My usual boring signature: Something
-
Sep 20th, 2008, 01:26 AM
#6
Thread Starter
Lively Member
Re: MySQL class - Help me to improve/suggestion
 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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|