Jump to content

The Letter E

Members
  • Posts

    266
  • Joined

  • Last visited

About The Letter E

  • Birthday 07/09/1987

Contact Methods

  • Website URL
    http://www.devlifeline.com

Profile Information

  • Gender
    Male

The Letter E's Achievements

Member

Member (2/5)

2

Reputation

  1. You also want to escape any user input as requinix hinted at. you may possibly want to check out mysql_real_escape_string()
  2. You should consider storing your hash as binary, md5($mystring, true) ... to save bytes. Then you would just change your query to: [i]SELECT * FROM users WHERE username='$userbox' and hex(password) = '$passbox'[/i] [i] [/i]
  3. Try This: $sql = "SELECT personid FROM people WHERE username='".$_REQUEST['username']."'"; $result=mysql_query($sql); if(!$result){die(mysql_error());} $id = mysql_fetch_array($result); $id = "$id"; $value = "mycookie"; setcookie($value, $id);
  4. $sql = "SELECT personid FROM people WHERE username='".$_REQUEST['username']."'"; $result=mysql_query($sql); if(!$result){die(mysql_error());} $id = strval(mysql_fetch_array($result)); //strval() converts it to string $value = "mycookie"; setcookie($value, $id);
  5. <?php $sql = "SELECT ID FROM table WHERE USERNAME='".$_REQUEST['username']."'"; $result=mysql_query($sql); if(!$result){die(mysql_error());} $id = mysql_fetch_array($result); $value = "cookie value..."; setcookie($id, $value); ?> I forgot a semicolon on the first one. woops
  6. Thanks for the correction. I was unaware of that order.
  7. <?php $sql = "SELECT ID FROM table WHERE USERNAME='".$_REQUEST['username']."'"; $result=mysql_query($sql); if(!$result){die(mysql_error());} $id = mysql_fetch_array($result); $value = "cookie value..." setcookie($id, $value); ?>
  8. I'm not sure on the font-size. BUt you can't have a .5 on an align.
  9. <span class="other_items"> <p> <a href="">asdfdsafdsaf dsafsdaf sdafds</a> </p> </span> This should work: <style type="text/css"> .other_items p a:link {text-decoration: none; color:red;} .other_items p a:visited {text-decoration: none; color:red;} .other_items p a:active {text-decoration: none; color:red;} .other_items p a:hover {text-decoration: none; color:red;} </style> It was a basic syntax error. Hope this helped. E
  10. As far as I know you CANNOT use a half pixel UNLESS you are styling a text element... GOOD EXAMPLE: #myDiv { font-size: 12.5px; } BAD EXAMPLE: #myDiv { width: 350.5px; } I think the common misunderstanding is that a pixel is some relative form of measurement. A pixel is a standardized unit and the smallest usable screen element. A pixel contains only one solid color created by mixing light intensities such as red, green, and blue(RGB), or cyan, magenta, yellow, and black(CMYK). I hope this helps a little bit. You can definitely find more in depth info if you keep searching.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.