Web design and coding samples, free tools, tips and more..
Untitled Document

Posts Tagged ‘php’

PostHeaderIcon php function against sql injection

I’ve began to use this usefull function against sql injection and cleaning other bad characters before inserting data into database.

//function

function clean($str) {
  $str = @trim($str);
  if(get_magic_quotes_gpc()) {
   $str = stripslashes($str);
  }
  return mysql_real_escape_string($str);
 }

// usage:
clean($_POST["data"]);

hope it helps.

  • Share/Bookmark

PostHeaderIcon Secure php login scripts

In these articles you’ll find the best solutions for creating a secure PHP login script that will allow safe authentication.

1.Devshed Tutorial
2.Phpsense tutorial

  • Share/Bookmark

PostHeaderIcon Ajax Loader Gif Generator

ajaxload Great online tool for making ajax loader animated gifs. You can create easily your own ajax loader icon :

 

  1. Select the type of indicator you want
  2. Enter the background code color you want
    (tick “Transparent background” if you don’t want one
  3. Enter the foreground code color you want

Just Press “Generate it”. Click here to view this usefull tool.

  • Share/Bookmark

Search