Jump to content

Recommended Posts

Posted

So I'm trying to access my database in order to display it in a mobile app,I created a php file that works fine when calling it on the browser, although i don't know why it is not taking the arabic language and formatting it like (?????)   and i chosen remote mysql (%) and specify the host Johnney.... but data was not retrieved where i need it,giving me

 

XMLHttpRequest cannot load http://roaasolh.heliohost.org/hadith.json. No 'Access-Control-Allow-Origin' header is present on the requested resource. Origin 'http://localhost:8100' is therefore not allowed access.
Any help please .

Best Regards

 

Posted

The arabic language is likely not supported because of the wrong character set. Our server defaults to UTF-8 (or perhaps Latin1) I believe.

 

Krydos is the one who would know about why the remote access isn't working. Moving.

 

Posted

i chosen remote mysql (%) and specify the host Johnney.... but data was not retrieved where i need it,giving me ... Origin 'localhost:8100' is therefore not allowed access.

For remote mysql use the host johnny.heliohost.org not localhost. Mysql is also on port 3306 not 8100. As far as the arabic letters showing up as ? marks, make sure your collation is set to utf8_general_ci with phpmyadmin

utf8_collation.png

Guest
This topic is now closed to further replies.
×
×
  • Create New...