updateWhere() public method

Update Where
public updateWhere ( $desc, $id )
コード例 #1
0
ファイル: demo4.php プロジェクト: giovanniramos/pdo4you
<?php

// Loading demo class
require 'DemoCRUD.php';
// Example with text from HTML Editor
echo '<h2><a href=".">DEMOS</a> &rsaquo; HTML EDITOR</h2>';
// Creating an instance
$demo = new DemoCRUD();
// Sample text
$sample_text = '<p style="color: #CBF;">Lorem ipsum "dolor" sit amet</p>';
// Escape double quotes
$sample_text = addslashes($sample_text);
// UPDATE books SET description = ? WHERE id = 1
$demo->updateWhere($sample_text, 1);