Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extra for loop #2

Open
Matiaan opened this issue Jun 9, 2018 · 2 comments
Open

extra for loop #2

Matiaan opened this issue Jun 9, 2018 · 2 comments

Comments

@Matiaan
Copy link

Matiaan commented Jun 9, 2018

the loop on line 16 in "my-sql-export (backup) database.php" is not necessary since it already loops through the columns on line 19.
for ($i = 0, $st_counter = 0; $i < $fields_amount; $i++, $st_counter=0)

It wont cause any issues, since the next statement goes to the next row, so after you've gone through the first column in this loop, all the rows would have been visited.

@ttodua
Copy link
Owner

ttodua commented Jun 9, 2018

Hi Matiaan,
thanks for recommendation!
When I have time, I will test the execution and merge the change !

@valentesolucoes
Copy link

In the line 22, ($TableMLine[1]=str_ireplace('CREATE TABLE ','CREATE TABLE IF NOT EXISTS ',$TableMLine[1])) is not working.
The string CREATE TABLE isn't replace with CREATE TABLE IF NOT EXISTS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants