Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    SafeSQL 2.2

    Download button

    No screenshots available
    Downloads: 336  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Monte Ohrt | More programs
    LGPL / FREE
    April 6th, 2007, 16:02 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    SafeSQL description

    SafeSQL project is an SQL query processer to automate the tedious tasks of syntax testing.

    SafeSQL project is an SQL query processer to automate the tedious tasks of syntax testing, injection attack-proofing, dropping parts of queries and other misc features. It has only been tested with MySQL syntax, but any ANSI SQL-92 compliant db library should work OK.

    SYNOPSIS:

    require 'SafeSQL.class.php';

    // dummy up a variable with a single quote in it
    $section_name = "fred's place";

    // run the query through SafeSQL
    $safesql =& new SafeSQL_MySQL;
    $query_string = $safesql->query("select * from sections
    where Section_Name = '%s'", array($section_name));

    echo $query_string;

    OUTPUT:
    select * from sections where Section_Name = 'fred's place'

    // $query_string is now safe to pass to your SQL library

    What's New in This Release:

    · This release adds %n and %N for handling quoted and (non-quoted) NULL values.



    Product's homepage

      


    TAGS:

    SQL query processer | syntax testing | injection attack-proofing | SafeSQL | SQL | query

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM