ID:               48290
 User updated by:  kexianbin at diyism dot com
 Reported By:      kexianbin at diyism dot com
 Status:           Open
 Bug Type:         Feature/Change Request
 Operating System: Irrelevant
-PHP Version:      5.3.0
+PHP Version:      5.3.1
 New Comment:

Or i could write like this:

$_='addslashes';

$sql="insert into z_test (name, value) values ('{$name}',
'{$_($value)}')";
mysql_query($sql);


Previous Comments:
------------------------------------------------------------------------

[2009-08-10 11:26:11] kexianbin at diyism dot com

Maybe currently i could write like this:

$sql=eval(safe(
     "insert into z_test (name, value) values ('{$name}', '{#value}')"
     ));
mysql_query($sql);

------------------------------------------------------------------------

[2009-08-10 11:25:26] kexianbin at diyism dot com

Maybe currently i could write like this:

$sql=eval(safe(
     "insert into z_test (name, value) values ('{$name}', '{#value}')"
     ));
mysql_query($sql);

------------------------------------------------------------------------

[2009-08-03 05:24:58] kexianbin at diyism dot com

Sigh, few people noticed this.

------------------------------------------------------------------------

[2009-05-15 06:28:06] yuyun0102 at gmail dot com

²ÝÄàÂí

------------------------------------------------------------------------

[2009-05-15 06:08:47] kexianbin at diyism dot com

You will say to use PDO, but these code is so ugly:

$sql=$pdo->prepare("select *
                    from sem_SearchChangeShow
                    where Keyword=:Keyword
                          and BatchNum=:BatchNum
                          and OldChannelID=:ApvChannelID_old
                          and OldCategoryID=:ApvCategoryID_old
                  ");
$sql->execute(array(':Keyword'=>$v['Keyword'],
                    ':BatchNum'=>$v['BatchNum'],
                    ':ApvChannelID_old'=>$v['ApvChannelID_old'],
                    ':ApvCategoryID_old'=>$v['ApvCategoryID_old']
                   )
             );
$tmp=$sql->fetch(PDO::FETCH_ASSOC);

------------------------------------------------------------------------

The remainder of the comments for this report are too long. To view
the rest of the comments, please view the bug report online at
    http://bugs.php.net/48290

-- 
Edit this bug report at http://bugs.php.net/?id=48290&edit=1

Reply via email to