Help for this page

Select Code to Download


  1. or download this
    foo';DROP TABLE press_release;SELECT * FROM press_release WHERE header
    +='foo
    
  2. or download this
    SELECT id FROM press_release WHERE header = 'foo';
    DROP TABLE press_release;
    SELECT * FROM press_release WHERE header='foo'
    
  3. or download this
    $header    = $dbh->quote( $header );
    
    # note the *lack* of single quotes around $header
    $header_id = $dbh->prepare("SELECT id FROM press_releases WHERE header
    + = $header");