24 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 1+ items on Envato Market
CreativeBoy says

I got a problem in PHP . I have 2 documents: test.php and index2.php . In test.php it gets data from MySQL db. Data is in Russian. Test.php shows correctly it. But, when i include it to index2.php it shows incorrect. In test.php there is nothing, just it get’s from mysql. There is no doctype, content-type and etc. But in index2.php there are all. My charset is UTF -8 which shows Russian normally in other places.

Here are both of them: test.php

index2.php

Thanks a lot…

352 posts
  • Has been part of the Envato Community for over 6 years
  • Has referred 50+ members
  • Has sold $10,000+ on Envato Market
  • Had an item featured in an Envato Bundle
+6 more
danharper says

Erm, it’s hard to see where the problem is. What exactly isn’t working for you?

For me, test.php is outputting:
???????

And index2.php:
some other russian here. forum wont display it then: ???????

BTW , why is your test.php (which you say is only getting the info from the DB) outputting data at all?

Perhaps you could zip your PHP files so that we can actually see the code.

24 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected 1+ items on Envato Market
CreativeBoy says

OMG ! what is it :((((

I did nothing. But it changed to normal automatically. Really… It was showing ?? before… Now it’s working… Anyways thanks…

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by