PHP Code - import xml file from web server (/public_html/ctrackxml) into mysql database

前端 未结 5 1747
无人共我
无人共我 2021-01-07 02:26

I have xml files been imported onto an FTP server. This is stored in location \'/public_html/ctrackxml/\' with a random file name and in the following format:



        
5条回答
  •  忘掉有多难
    2021-01-07 02:56

    Use mysql_real_escape_string() on your input. http://se2.php.net/manual/en/function.mysql-real-escape-string.php

    It willl not solve your current problem but future ones where escape chars are needed.

    Turn on display_errors, enable warnings.

    Try debugging with a counter in the foreach loop $i++, or echo every cycle. find out how far it goes before failing..

提交回复
热议问题