asmith Posted May 4, 2008 Share Posted May 4, 2008 hey guys i have an awful lot of queris in my email . like : insert into ... insert into ... which is impossible to do one by one. so i wrote : <?php $db = mysql_connect("localhost","... mysql_select_db("db",$db); $a = "insert into... insert into... insert into..."; // queries goes here $b = explode("\n",$a); foreach($b as $query) { mysql_query($query,$db) or die(mysql_error()); } echo "these queries were executed : <br />"; print_r($b); ?> it works fine. except some of the queries has unicode characters, which makes problem wen saving the file. but when i save te file as a unicode format, my brower only shows a white page and does nothing . any idea? Quote Link to comment Share on other sites More sharing options...
effigy Posted May 5, 2008 Share Posted May 5, 2008 Is the database using UTF-8? How are these characters encoded in your file? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.