Jump to content

Arabic Characters showing as question marks?


Raven1313

Recommended Posts

 

This is the insert into query:

$sql=mysql_query("select PLAST,PREF,POPEN,PCLOSE,PBID,PVOL,PVALUE,PASK,NATIVE_TICKER  from  hist_sec where  DATE(PDATE) = DATE(NOW()) ");
       $num=mysql_num_rows($sql);
				for($i = 0;$i < $num;$i++)
    				{ $arr1 =  mysql_fetch_row($sql);
    				  $PLAST=$arr1[0];
    				  $PREF=$arr1[1];
    				  $POPEN=$arr1[2];
    				  $PCLOSE=$arr1[3];
    				  $PBID=$arr1[4];
    				  $PVOL=$arr1[5];
    				  $PVALUE=$arr1[6];
    				  $PASK=$arr1[7];
    				 $TICKER=$arr1[8];
    				  $change1=($PLAST-$PREF)*100/$PREF;
                                          $change1=number_format($change1, 2, '.', ',');
                                          if($PLAST!="")
                                          {
$mysql_query = mysql_query("INSERT INTO  `mydatabase`.`loser_gainer` (`change` ,`Stock` ,`Last` ,`Vol`)VALUES ('$change1',  '$TICKER',  '$PLAST',  '$PVOL')");

 

So basically I pull from hist_sec table and INSERT INTO loser_gainer table but when I check loser_gainer table I check the column STOCK and it contains "??????" characters instead of Arabic characters.

 

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.