useful-php-scripts
useful-php-scripts copied to clipboard
extra for loop
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.
Hi Matiaan, thanks for recommendation! When I have time, I will test the execution and merge the change !
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.