iamcenz's Profile User Rating: -----

Reputation: 7 Worker
Group:
Alumni
Active Posts:
2,361 (0.47 per day)
Joined:
26-March 01
Profile Views:
8,398
Last Active:
User is offline Apr 29 2014 09:16 AM
Currently:
Offline

Previous Fields

Country:
IT
OS Preference:
Windows
Favorite Browser:
Internet Explorer
Favorite Processor:
Intel
Favorite Gaming Platform:
XBox
Your Car:
Volkswagen
Dream Kudos:
201

Latest Visitors

Icon   iamcenz has not set their status

Posts I've Made

  1. In Topic: Facebook Style Like System

    Posted 20 Aug 2013

    View PostArtaex, on 20 August 2013 - 12:15 PM, said:

    Hello,

    Using PDO would indeed be a lot better, but I can understand you don't want to do that yet.
    However, to make it more secure, you should escape any input using
    mysql_real_escape_string
    


    Please take this as an advance, you really don't want people injecting MySQL.

    ~ Jeffrey


    Thanks Jeffrey,

    I have a function I use to sanitize all my stuff to prevent injection, I was just more worried about the basics of the script working, its all secured and cleaned up now.
  2. In Topic: Facebook Style Like System

    Posted 19 Aug 2013

    That makes sense
  3. In Topic: Facebook Style Like System

    Posted 19 Aug 2013

    View PostCTphpnwb, on 19 August 2013 - 03:31 PM, said:

    It's nice that it's working, but can you read and explain your code to some one? Will you be able to in six months?

    You've got HTML, CSS, Javascript, MySQL, and PHP all in the same file. It makes my eyes glaze over just looking at it! You need to start using functions (and then classes) to organize your code, separate the languages into their own files, and for the love of God stop using insecure, deprecated MySQL functions. Use prepared statements.


    well now that the code itself is working i can clean it up. as for using deprecated MySQL functions I already stated that the site is going to be converted to a whole new system soon, but as for right now it is what it is.

    Dont think I dont appreciate your comment because I agree 110%. I just am doing what I need to do to get the job done right now.
  4. In Topic: Facebook Style Like System

    Posted 19 Aug 2013

    yup that did it, how did i miss that! thanks so much!
  5. In Topic: Facebook Style Like System

    Posted 19 Aug 2013

    View Postmodi123_1, on 19 August 2013 - 02:51 PM, said:

    Quote

    12 $q2 = mysql_query("INSERT INTO heards artist_id, user_id VALUES ".$id.", ".$user_id."");

    Where is "$q2" being executed at?

    Though.. if it were me.. I would only do soft deletes. That information on who liked something, and then how long/when they unliked something could be mined.

    $q2 is executing on its own, it works the same as if i just had the mysql_query. if you look thats how I have my delete and that works fine, but as for the delete what is the plus side of a soft delete?

My Information

Member Title:
You wish you were my hand!
Age:
29 years old
Birthday:
October 5, 1985
Gender:
Location:
Lindenhurst, NY
Interests:
Webdesign
Years Programming:
7
Programming Languages:
PHP, MySQL, HTML

Contact Information

E-mail:
Click here to e-mail me
AIM:
AIM  bluntedbynature
Website URL:
Website URL  http://www.iamcenz.net
ICQ:
ICQ  142058178

Friends

Comments

iamcenz has no profile comments yet. Why not say hello?