PHP Classes

A little correction

Recommend this page to a friend!

      MySQL backup class  >  All threads  >  A little correction  >  (Un) Subscribe thread alerts  
Subject:A little correction
Summary:A little bug and fix.
Messages:2
Author:Can Ince
Date:2005-05-10 03:57:10
Update:2005-05-13 12:08:58
 

  1. A little correction   Reply   Report abuse  
Picture of Can Ince Can Ince - 2005-05-10 03:57:10
A quite good and useful project. Thanks to the author.

Problem: in a case where you have a semi-colon inside the queries
(e.g. "aaaaa","bbbb","cc;dd") the code (mysql_backup.class.php) explodes the query from the semi-colon(;) returning an unwanted result, as we have a line (line 262) there:
//----code begins here----
$SQL = explode(";", $this->_Open($this->output));
//----end of the code----
Fix: As we need to explode the string where we have got a semi-colon, and a new line:
//----code begins here----
$SQL = explode(";\r", $this->_Open($this->output));
//----end of the code----
will fix the problem.

  2. Re: A little correction   Reply   Report abuse  
Picture of Matthias Mohr Matthias Mohr - 2005-05-13 12:08:58 - In reply to message 1 from Can Ince
Hi.

Thank you for this peace of code, but for me, it works only with ";\n" insted of ";\r".