Welcome!

Join our community of MMO enthusiasts and game developers! By registering, you'll gain access to discussions on the latest developments in MMO server files and collaborate with like-minded individuals. Join us today and unlock the potential of MMO server development!

Join Today!

unnull() php?

Joined
Dec 15, 2009
Messages
1,387
Reaction score
236
RaSjApL - unnull() php? - RaGEZONE Forums


I'm trying to fetch strings/data from a json api.
However, some of the fields shows up as 'null', my guess is that the characters that inside the field contains unicodes or alt codes which is unsupported by the script itself.
I decided to questions the original creators of the script.
The response was:

unnull(field(clanname))
[5:03:04 PM] XX: field = get_field('clanname');
[5:03:12 PM] XX: have_rows('clanname');
[5:03:29 PM] XX: while (have_rows('clanname')): the_row();

I was like stun...what the hell is unnull? Can someone explain?
 

Attachments

You must be registered for see attachments list
Last edited:
Banned
Banned
Joined
Dec 24, 2014
Messages
100
Reaction score
6
, Im wondering instead you use ' you need to use " example


[5:03:04 PM] XX: field = get_field("clanname");
[5:03:12 PM] XX: have_rows("clanname");
[5:03:29 PM] XX: while (have_rows("clanname")): the_row();


I was read this thing before when i make gamepanel for the game but should try it.
 
Last edited:
Banned
Banned
Joined
Dec 24, 2014
Messages
100
Reaction score
6
When you put this " beside of the code someone say this code null but you are doing right when i see it.It's really weird why you get that problem.
 
Ask me about Daoism
Loyal Member
Joined
Nov 6, 2010
Messages
1,560
Reaction score
393
Post some of your code.

I bet you that you're trying to fetch "Name" the wrong way (either from outside of the scope or outside of the array), seeing as Name would probably be username and usernames aren't empty.
 
Back
Top