Menu

#55 Editable blobs

Next_release
fixed
nobody
1
2013-06-11
2001-08-05
No

I would need to edit and insert into blobs.
Why is this not supported? I have included it myself,
here is my version (tbl_change-php):

OLD VERSION
// We don't want binary data to be destroyed
if((strstr($row_table_def["Type"], "blob") ||
strstr($row_table_def["Type"], "binary")) && !empty
($data))
{
echo "<td>$strBinary</td>";
}
else
{
echo "<td><select name=\"funcs[$field]
\"><option>\n";

MY VERSION
// We don't want binary data destroyed
elseif(strstr($row_table_def["Type"], "blob"))
{
echo "<td><textarea rows=4 cols=40
wrap=physical name=fields[$field]
style=\"width:$cfgMaxInputsize;\"
maxlength=$len>$special_chars</textarea></td>";
}
else
{
$fieldsize=($len>40? 40: $len);
echo "<td><input type=text name=fields[$field]
value=\"".$special_chars."\"
maxlength=\"$len\" size=\"$fieldsize\"></td>";
}
echo "</tr>\n";

Discussion

  • Anonymous

    Anonymous - 2001-08-07

    Logged In: YES
    user_id=280398

    Get the latest CVS and use $cfgProtectBlob to control this.

     
  • Marc Delisle

    Marc Delisle - 2001-08-10

    Logged In: YES
    user_id=210714

    In phpMyAdmin 2.2.0RC4:
    From Documentation.html

    $cfgProtectBlob boolean
    Defines whether BLOB fields are protected from
    edition when browsing a table's content or not.

     
  • Marc Delisle

    Marc Delisle - 2001-08-10
    • priority: 5 --> 1
     
  • Marc Delisle

    Marc Delisle - 2001-08-11
    • status: open --> closed
     
  • Michal Čihař

    Michal Čihař - 2013-06-11
    • Status: closed --> fixed
     
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.