eZACKe's Profile User Rating: -----

Reputation: 120 Stalwart
Group:
Active Members
Active Posts:
1,277 (0.72 per day)
Joined:
01-June 09
Profile Views:
31,770
Last Active:
User is offline Jan 25 2014 10:01 PM
Currently:
Offline

Previous Fields

Country:
US
OS Preference:
Windows
Favorite Browser:
Chrome
Favorite Processor:
AMD
Favorite Gaming Platform:
XBox
Your Car:
Who Cares
Dream Kudos:
0

Latest Visitors

Icon   eZACKe “Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live.”

Posts I've Made

  1. In Topic: Looking for ideas/advice on compressing and storing large images

    Posted 22 Jan 2014

    View Postfarrell2k, on 22 January 2014 - 01:37 AM, said:

    lossless = less compression. You want to send them via jpeg and even downsize resolution. People are viewing these on small screens. Don't worry so much about quality.

    Any recommendations on what to pass in for the quality to compress? If I keep it JPG, but also pass in 100 to the compressor would that be a good strategy? Or is it more of a just trial and error thing? Thanks for the reply btw.
  2. In Topic: .htaccess mod_rewrite causing $_POST to not go through

    Posted 10 Jul 2012

    I'm not sure I understand your question or your concern. Could you please elaborate? Thank you.
  3. In Topic: Mod Rewrite for variable sized urls

    Posted 11 Jun 2012

    In all honesty, it really is to make it "pretty" for the human users. Maybe not even so much the human users, but myself. I just like nice looking urls.
  4. In Topic: Mod Rewrite for variable sized urls

    Posted 11 Jun 2012

    After rereading this and thinking more about what I'm asking, I realize what I'm requesting my actually be imposisble.

    But what about this: Can you keep like a counter in mod_rewrite

    So I could always convert something like this:
    www.example.com/myCmd/myAction/114/118/SOME_NAME....

    To

    www.example.com/?cmd=myCmd&act=myAction&tmp1=114&tmp2=118&tmp3=SOME_NAME.....&tempx=...
  5. In Topic: mysql query question

    Posted 11 Jun 2012

    That query will, as you said, query the person table and retrieve the first_name and last_name fields. Everything after WHERE in an SQL statement is considered the WHERE Clause. In this specific WHERE Clause, you're using the id field to narrow down your search in the db table.

    In this example, $inAuthorId was probably already set to something, most likely a number, but doesn't have to be. Now in the mysql_query function, you're concatenating the first part of the query and this variable. So if the variable's value was 2 your query would look like:

    SELECT first_name, last_name FROM people WHERE id = 2

    So this query will return the first_name and last_name of the row in the people table which has id equal to 2.

    If I were doing this in PDO it'd look something like:


    $sql = "SELECT first_name, last_name FROM people WHERE id = :theId";
    		$result = self::$pdo->prepare($sql);
    		$params = array(
    			'theId' => $inAuthorId
    		);
    		$result->execute($params); 
    		$result->bindColumn('first_name', $firstName);
    $result->bindColumn('last_name', $lastName);
    		$result->fetch(\PDO::FETCH_BOUND);
    
    


    For more info on PDO: http://php.net/manual/en/book.pdo.php

My Information

Member Title:
Garbage Collector
Age:
24 years old
Birthday:
February 14, 1990
Gender:
Location:
New York
Interests:
TRACK, computer science, video games
Years Programming:
4
Programming Languages:
Learning: Java, C#, PHP, MySQL, HTML/CSS, Flex

Contact Information

E-mail:
Private
AIM:
AIM  zrunn3rz
Website URL:
Website URL  http://
Facebook:
http://www.facebook.com/zhine

Comments

Page 1 of 1
  1. Photo

    Guest 

    17 Jul 2011 - 22:13
    Hey there, I was just curious if you would check out my programming forum. If your active and interested, you may become a moderator early on. We are a new forum, powered by IPB... check us out!
    http://www.theprogrammingforum.com
  2. Photo

    diffsoft Icon

    16 Feb 2011 - 22:13
    Hi how are you.I am adding you as friend.
    Now, what your response about me.Give me tips
    related to c#.
  3. Photo

    caleb123 Icon

    22 Jun 2010 - 19:44
    Would you like to be my website designing buddy? If you do, you can email me at cheryman22@yahoo.com
    You and I can give each other tips and answer question to make us both better at designing websites.
Page 1 of 1