|
我想把数据库里的纪录转下码!
//$sql->Query("SELECT * FROM er_products ORDER BY productid Desc");
$sql->Update("Update er_products SET productname = '$author2'");
for ($i = 0; $i < $sql->rows; $i++) {
$tt = $sql->Fetch($i);
$sql->Fetch($i);
$bname = $sql->data[productname];
$author = $sql->data[productnamejian];
$bname = base64_encode($bname);
结果把productname 字段里的全都变成同一个编码后的结果了!
哪里错了? |
|