dongzhanyan3667 2012-05-29 18:37
浏览 9

图像字段更新查询

I create a form to upload and display image in php ... Im trying to find out how I can update a blob field in a table but it is not working here is the code

    $editFormAction = $_SERVER['PHP_SELF'];
if (isset($_SERVER['QUERY_STRING'])) {
  $editFormAction .= "?" . htmlentities($_SERVER['QUERY_STRING']);
}

if ((isset($_POST["MM_update"])) && ($_POST["MM_update"] == "form1")) {
  $updateSQL = sprintf("UPDATE product SET ProductName=%s, `Description`=%s, ProductPrice=%s, ProductPic=%s, PictureType=%s WHERE ProductID=%s",
                       GetSQLValueString($_POST['ProductName'], "text"),
                       GetSQLValueString($_POST['Description'], "text"),
                       GetSQLValueString($_POST['ProductPrice'], "double"),
                       GetSQLValueString($_POST['ProductPic'], "text"),
                       GetSQLValueString($_POST['PictureType'], "text"),
                       GetSQLValueString($_POST['ProductID'], "int"));

  mysql_select_db($database_dutyfree, $dutyfree);
  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 单片机学习顺序问题!!
    • ¥15 ikuai客户端多拨vpn,重启总是有个别重拨不上
    • ¥20 关于#anlogic#sdram#的问题,如何解决?(关键词-performance)
    • ¥15 相敏解调 matlab
    • ¥15 求lingo代码和思路
    • ¥15 公交车和无人机协同运输
    • ¥15 stm32代码移植没反应
    • ¥15 matlab基于pde算法图像修复,为什么只能对示例图像有效
    • ¥100 连续两帧图像高速减法
    • ¥15 如何绘制动力学系统的相图