Jump to content

unicode? queries ...


asmith

Recommended Posts

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?

Link to comment
https://forums.phpfreaks.com/topic/104062-unicode-queries/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.